Why does Google Chrome always add space after selected text?

google docs line spacing problems
google docs remove space after paragraph
why is my enter key double spacing google docs
how to remove extra spaces in google docs
google sheets line spacing
google docs line spacing less than 1
google docs paragraph indent
google docs list spacing

Why does Google Chrome always add a space at the end of a line when selecting a text with 3 mouse clicks?

Do you think we can do something using CSS or JavaScript to remove it? (Bad idea but, just trying to avoid this thing)

The block :

When I click 3 times on the text :

A gif example :

    <h1>Example Domain</h1>
    <p>This domain is established to be used for illustrative examples in documents. You may use this
    domain in examples without prior coordination or asking for permission.</p>
    <p><a href="http://www.iana.org/domains/example">More information...</a></p>

I have run many tests between Chrome and Firefox to figure out a common pattern for their display, selection, and copying methods.

Google Chrome

Google Chrome ignores all of the inner and outer element whitespace characters in the HTML except if they are inside the text. All whitespace characters in between text is displayed as a singular space character but the actual value of the character is retained. This is for both elements that have the inline or the block display styles.

Every single element except for the last element of the body element, displays a space at the end when it is selected by using triple click or drag selection. This space is different based on the display style of the elements.

A block display element results in 2 CRLF characters appended to it when the text is copied while a inline display element only ever results in 1 CRLF. The whitespace characters are maintained between copy and paste but are limited to only one character.


Firefox ignores outer element whitespace but has interesting results with inner element whitespace characters. All whitespace characters are converted to spaces with except for the starting character with a limit of one whitespace between each non-whitespace character. Only the last whitespace is shown and selected.

Triple click selection and copying of the text results in different values based on the display style of that element.

Inline Display

There is always a space before and after the text that is copied regardless of what the elements contains. Every whitespace character is removed.

Block Display

Whitespace characters before the text are retained as-is and the ending whitespace character is converted to a space.

So to answer your question, this is all based on how the browsers implement the display, selection, and copy methods. It will different between browsers and I would not recommend adding CSS, JS, and HTML hacks. From the tests, I believe the selection has nothing to do with the new line between the elements as removing the newline does not fix the extra space selection.

Extra space while selecting text using Google Chrome, How to Adjust Default Font or Line Spacing in Google Docs 1. Go to Format > Paragraph styles > Normal text. 4. Select If that happens, select "delete space after paragraph," and then try "add space after paragraph" again. With the Chrome 54 update they made it so Chrome can detect the DPI setting on your computer so that the web browser will be scaled accordingly. Google Chrome didn’t used to pay attention to your Windows DPI setting. Now it does, and that’s the root cause of the large interface issue.

As suggested by @brendan, its because of newLine characters.

Try creating a dummy HTML page with following html and try,

    <h1>Hello world</h1>

Wrong spacing between paragraphs - Docs , Select "Update 'Normal text' to match." 5. Next, go to Format > Paragraph styles > Options. 6. Select "Save as my default styles." ~  Most of the time this solves your problem so try to clear the cache first and then start following the methods. Open Google Chrome Press CTRL, SHIFT and DELETE keys simultaneously (CTRL + SHIFT + DELETE) Check Browsing history, Cached images and files, Autofill form data and Cookies and other site and plugin data

You have probably seen this google group already but otherwise it might help:

How to double-click a word and not select or highlight an extra space after the word

It's not actually for the same problem but it seems there is a difference in the behavior between different OS.

I can't test it now, but maybe there is the same behavior for your concern.

How to make "Add space after paragraph" default for all new Google , Select the double-spaced paragraphs, click on Format | Paragraph | Indents and automatically double spaces it, which is not what I want. Check the box that says "Don't add a space between paragraphs of the same show quoted text -. Lately, my copy of Chrome has been getting more than a little sluggish. Although pages and the like still load relatively quickly (and without incident), I’ve noticed on several occasions that when I’m typing something, the cursor tends to lag a bit. It’s nothing terribly blatant; just an occasional hiccup in text entry.

Resolve in Chrome from the version 69.0.3497.81

Re: How do I stop double spacing after hitting the , Text can be copied to clipboard through ctrl+c or the right-click copy option. Select CombinedSearch to open a single search tab for each selection separated by a space. Notes - The extension is automatically disabled by Chrome in the store description. Selections are rarely not cleared after clicking. Right-click on the Chrome shortcut and select properties. If you right-click on the Chrome icon pinned to the taskbar, you may need to right-click on Google Chrome again when the context menu opens before you get a chance to click on the properties entry. Switch to the compatibility tab in the Properties window.

MultiLine Text Selection, With this new change I keep ending up adding text to the end of URLs Sometimes the entire URL is highlighted, and other times you get a cursor insert. As you I always clicked and CRTL-C'd to copy the url now I end up pasting that if you single cick the address bar in the space after the text the cursor  Select the add-on you want to disable and click the Disable button. Google Chrome : Click Chrome’s menu button, select Settings, and select the Extensions category at the left side of the window. Uncheck the Enabled box to the right of any extension you want to disable.

I can not select the whole URL since I click on it with Chrome version , Async Clipboard API is unblocking copy and paste in Chrome 66. Imagine adding permissions into the mix, requiring that the browser block the Since this API is asynchronous, the writeText() function returns a Promise depending on whether the text I passed is copied successfully: input.select(); Chrome might already be running in the background on your computer. To see if Chrome's open and force quit, follow the steps below for your operating system. Windows. Press Ctrl + Alt + Delete. Click Task manager . Under 'Processes', look for 'Google Chrome' or 'chrome.exe'. Click it, then click End process. Mac. Press ⌘ + Option + Esc.

Unblocking Clipboard Access | Web, This happens in Firefox and Chrome on Windows (haven't tested Edge or IE11, but I Selecting and copying sometimes used by non-developers, text Pasting text adds a single space before and after the content #17480 If something is adding spaces (during copy) in front and in back of copied text  My keyboard stopped working today and I'm not sure why. I haven't changed any settings in Chrome or added any extensions/plugins or changed their settings. I upgraded to Windows 10 a while back, but I haven't had any problems with the keyboard until today. I literally went to the restroom and it wasn't working anymore when I came back.