Safari pastes an extra space

When I paste some text from the clipboard in a text area in a web form (a text area just like the one where I'm typing this question) where I have highlighted some text, the pasted text replaces the highlighted text, but it also places a space before and after the pasted text. The behaviour varies a little. It doesn't seem to happen if the text being replaced is an entire word, and if the text is followed by a closing parenthesis ) the trailing space is not inserted. Indeed, if the the text is preceded by an opening parenthesis ( the leading space is not inserted.
This doesn't happen in Firefox, or textmate, or Word, but it does also happen in textedit. What's happening here, and can I change it?
MacBook Pro   Mac OS X (10.4.8)  

Niail,
Welcome to Discussions!
Take a look at this post, it seems related to the problem you have.
Hope this helps!

Similar Messages

  • Unwanted extra spaces during Copy/Paste in documment recognized by Acrobat OCR

    I have Acrobat 9 (EN)
    I created documment from images (JPG) then I applied OCR idexing in right language (Czech).
    Now, if I Copy/Paste text than it add unwanted spaces (e.g. in the middle of words.
    I tried to find answer.
    http://www.google.com/search?hl=cs&q=acrobat+extra+spaces+copy+paste&btnG=Vyhledat+Googlem &lr=
    ...and I found
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=3959
    http://www.microtype.com/Hmmms.html
    ...but still don't untderstand how to fix this problem.

    You don't understand a problem. I have no .doc file, I have JPGs indexed by OCR that is included in Acrobat.
    Probably, font used in scanned documment has too wide spaces between letters in word so Adobe OCR recognizes it like real space but it isn't there.
    I would like to know how to eliminate these unwanted spaces.
    Maybe OCR algorithm needs some change.

  • Removing extra spaces from a long document

    Hello
    I have seen a number of find/change and GREP formulas to do similar things. I have NO scripting or coding experience and have labored to understand GREP.
    So I am a little afraid to use it as I don't know what all the modifiers refer to (I do have a printout of some neat GREP cheatsheets like Mike Witherell's that I can absorb until I obtain a good reference )
    I need something I can copy and paste into either find/change or GREP dialog that will do the following in less than 12 steps (hopefully) without doing something catastrophic like removing all of my paragraph marks (which I almost did using someones GREP expression)
    No spaces before any comma, period, exclamation mark, question mark, colon, semicolon
    One space only after any of those
    One Space before any opening parenthesis and one space after the closing parenthesis
    No space after the opening parenthesis or before the closing parenthesis
    Remove any double or extra spaces ( en, em etc.)
    Remove any commas before parentheses
    Remove any spaces after a paragraph mark
    I think that's it
    I did find this one recently (Maybe Jongware?)
    [~m~>~f~|~S~s<~/~,~3~4%]{2
    Which from my dim understanding addresses em, en, flush and hair space ,  nonbreaking space ,figure space,third space--not sure of the rest. Really this is way over my head.
    I know this will be a piece of cake for you guys
    Thanks

A: Removing extra spaces from a long document

Peter is too modest, he's doing just great.
No space BEFORE-One Space after ---period,semicolon,colon, exclamation, question mark,CLOSING Parenth,Bracket,Brace, single & Dbl. quotation marks
Find (\s)([.,;:!\)\]\}~}~]])
Replace with $2
No space AFTER-One Space Before----OPENING bracket,brace,parenthesis,Dbl & single quotes
Find ([\[\{\(~{~[])(\s)
Replace with $1
These remove the space before/after but do not automatically add a space after/before.
In the first case, you could add a space right after the '$2' in the Replace With string, but it already may have a space, in which case you suddenly have two. One alternative is to optionally remove it with the Find string (add it as an optional match) and always add it with the Replace string, but remember that this string will only be found if there is a space preceding it. That way you'd only check the space after in cases where there was a bad space before.
So I propose you add another two find/changes to add the space, only when necessary.
One Space After: find
([.,;:!\)\]\}~}~]])(?!\s)
replace:
$0 [followed by one single space]
One Space Before: find
(?<!\s)([\[\{\(~{~[])
replace:
[one single space] $0
Color-coding with my WhatTheGrep might make it just a tad clearer what's going on in that jumble of codes:
(1 [ .,;:! \) \] \} ~} ~] ] 1) (?!! \s !)
and
(?<!<! \s <!) (1 [ \[ \{ \( ~{ ~[ ] 1)
(Orange is lookahead/lookbehind, blue is a regular escaped character, pink is an InDesign special character, green is normal grouping parentheses, and lavender is a character group.)

Peter is too modest, he's doing just great.
No space BEFORE-One Space after ---period,semicolon,colon, exclamation, question mark,CLOSING Parenth,Bracket,Brace, single & Dbl. quotation marks
Find (\s)([.,;:!\)\]\}~}~]])
Replace with $2
No space AFTER-One Space Before----OPENING bracket,brace,parenthesis,Dbl & single quotes
Find ([\[\{\(~{~[])(\s)
Replace with $1
These remove the space before/after but do not automatically add a space after/before.
In the first case, you could add a space right after the '$2' in the Replace With string, but it already may have a space, in which case you suddenly have two. One alternative is to optionally remove it with the Find string (add it as an optional match) and always add it with the Replace string, but remember that this string will only be found if there is a space preceding it. That way you'd only check the space after in cases where there was a bad space before.
So I propose you add another two find/changes to add the space, only when necessary.
One Space After: find
([.,;:!\)\]\}~}~]])(?!\s)
replace:
$0 [followed by one single space]
One Space Before: find
(?<!\s)([\[\{\(~{~[])
replace:
[one single space] $0
Color-coding with my WhatTheGrep might make it just a tad clearer what's going on in that jumble of codes:
(1 [ .,;:! \) \] \} ~} ~] ] 1) (?!! \s !)
and
(?<!<! \s <!) (1 [ \[ \{ \( ~{ ~[ ] 1)
(Orange is lookahead/lookbehind, blue is a regular escaped character, pink is an InDesign special character, green is normal grouping parentheses, and lavender is a character group.)

  • Addition of extra Space issue in site studio text element

    Hi,
    we have implemented WCM for our website. We are in webcenter PS3 version.
    At places where we have used text element for titles of various sections,
    if we append one extra space and save it, it displays as   in front end.
    When we remove the space, it does not clear. But if we cut and paste once the word once again it is perfect.
    Is there any solution to trim that space when it is displayed at front end. Please suggest.
    Regards,
    Bhaskar

    enclose your text element with strTrimWs.
    Removes spaces from the beginning and end of a string.

  • How do I remove extra space after an image in an ePub created with InDesign?

    I've designed more than a dozen ebooks with InDesign and have recently been having problems with the spacing after images, both images that are anchored in the text or stand-alone and exported through the Articles Panel. Following are a few details:
    • In the Object Export Settings, I have the vertical spacing set to 0 both before and after the images and no breaks added.
    • In the Export panel, I do not have any vertical spacing applied to images.
    • I do not have any Object Style settings applied.
    • It doesn't seem to matter if I anchor the image into the text or have it as a stand-alone image in the Articles Panel with the caption after it in a separate text box, also in the Articles Panel.
    • I broke down the ePub into an html file and did not see any div or span classes that were different between images that are showing correctly vs. incorrectly.
    • Extra space appears in both iBooks on my computer, as well as on my iPad.
    • I converted to a mobi file for the Kindle and the space wasn't there.
    See attached screen shot. There shouldn't be that big gap between the image and the orange caption.
    Any help or suggestions anyone can provide would be greatly appreciated. I feel like I've tried everything I can think of with the same results over and over!

    Yes. That is the technique I traditionally use to drop an image into text. I even cut and pasted again as you suggested with the same result. Trust me, this is driving me nuts. I'm not doing anything different than before, but my results are different, even within the same document. I'll attach a few examples, all from this same document.
    How the space after my in-line image is supposed to look:
    And then a few of the pages with the mystery gap:

  • The extra space created due to Conditional Build Tags

    Hello,
    I am authoring a online help file, for a web application. As different content is needed for the 4 different roles of the user, I have used Single Sourcing option and made use of conditional build tags for the content that is not common among the different roles. I even have images which are difffernt for the differnt roles. I have used conditional build tags for these too. The problem is that, extra space appears in place of the images which are not applicable to build I am publishing. Is there any workaround other than modifying the HTML files to remove the extra space added?
    Regards,
    Deepti Korwar

    hi Deepti,
    I have seen this issue on multi-level lists (in RH9) when using soft returns (Shift-Enter) within the lists.
    An extra space is added before images marked with CBTs. But this only caused problems in print.
    Are you seeing this space on all outputs or just print?
    Can you paste a code snippet from one of the offending list?
    Perhaps you can get round this by opening up the HTML tab and carefully examining and perhaps moving the CBTs.
    e.g. <?rh-cbt_start condition="xyz" ?><img src="xyz"  > <?rh-cbt_end ?></p><?rh-list_end ?>
    Will be helpful to see the code.
    thanks
    Craig

  • Firefox copy feature always adds extra space before or after when double clicking to select text

    I have only just started using Firefox but I've noticed a strange "feature" (I'm not sure if it's a feature or a bug, thus the quotes). I'm used to Opera and IE where by when I double click some text the text will be automatically selected. Firefox does something like this but for some reason I don't yet understand it adds an extra space at the beginning or end of the selection. This is a problem for someone like me who for work does a lot of copy and paste. I use web software that is intolerant of extra spaces and this feature/bug is going to end up causing some major issues.
    Is there a way to alter this behavior so that it behaves more like all my other computer programs? Your help is greatly appreciated.

    Not sure if this will help with your issue, but can try.
    In the URL bar type about:config
    Then change layout.word_select.eat_space_to_next_word to false.

  • How do i remove extra space in word program?

    Recently I have typed typed an apostrophe in word program & it adds an extra space.  How do i get rid of that?  I have tried everything.  It is everytime I type a word with an apostrophe  Thank you

    Yes. That is the technique I traditionally use to drop an image into text. I even cut and pasted again as you suggested with the same result. Trust me, this is driving me nuts. I'm not doing anything different than before, but my results are different, even within the same document. I'll attach a few examples, all from this same document.
    How the space after my in-line image is supposed to look:
    And then a few of the pages with the mystery gap:

  • IE6 shows extra space inside div

    I built some callout boxes using using divs instead of
    tables.
    My Problem: IE7, Firefox and Safari display the callouts
    correctly, but for some reason, IE6 adds extra space below the
    content within the callout box divs.
    I've tried adding a "div collapser" to reduce the height of
    the closing div to zero... (eg. .clear {font-size: 0px; height:
    0px} ) ...but that didn't work.
    You can see the page and css at:
    http://staging.digitaloilfield.com/cssspaceproblem1.htm
    How do I get IE6 to display my callouts correctly?
    Leif

    Here's what I've tried so far:
    - I've removed all the margins on the paragraphs -- that
    didn't work
    - I've tried the trick of closing the div on the same line of
    code -- that didn't work
    - I've tried removing the div containing the &nbsp --
    that didn't work (it causes spacing problems between the two
    callout boxes)
    Has anyone come across this problem before, or know what I'm
    talking about? Or is this one of those: "That's IE6 for ya"
    problems?

  • Need a method so that extra spaces automatically get removed from end of the sentences in MS Word 2013

    hello
    i have some documents (pasted from other applications), in which at the end of some sentences, an extra space exist before ending dot (.).
    for example "this is an article ." so it is assumed as error.
    is there ant trick or method or micro so that all extra spaces be automatically removed from end of sentences & for example the above sentence becomes so:
    "this is an article."
    thanks in advanced

    Press Ctrl+H to activate the Replace dialog.
    Enter a space followed by a period (dot) in the Find what box.
    Enter a period (dot) in the Replace with box.
    Click Replace All.
    (If you don't like the result, you can undo it by pressing Ctrl+Z)
    Regards, Hans Vogelaar (http://www.eileenslounge.com)
    Hi Hans
    cool, thank you very much
    but here another problem arises. the source document is like this:
    "this is an article .we discuss IT here."
    after your approach it becomes:
    "this is an article.we discuss IT here." ---> here MSword shows another grammar error because . is atached to "we".
    any guide to resolve this problem as well
    thanks in advanced

  • Deletion of extra space in ALV report output

    Hi Experts,
    I have one issue where i have to delete the extra space in the output of  ALV report.
    Please let me know the possible way... Its very urgent.
    Thanks in advance
    Siri

    Hi Siri,
    Try these following steps in your report...... i think, it will lead you to solve your problem.
    1. Give output length of alv column as 10.
    2. OUTPUTLEN is there in Field catalogue
    3. "gt_layout TYPE lvc_s_layo" -  use this one field col_opt
    Reward if useful.
    Regards,
    Harish

  • Crystal for VS 2010 - formatting issues in viewer (extra space) again

    We're having the same problem as the one in this thread link:[Crystal 2008 for VS 2010 - Report formatting issues in viewer (extra space);. There's no resolution in the thread and it's been closed. I'm hoping that creating a new thread may cause someone to answer this problem.
    We have a Windows App that we just converted to .NET 4.0 and updated the viewer to the Crystal Reports Viewer in VS 2010. When we open a report that has a large block of static text in paragraphs left-aligned the spacing around punctuation is awful - there's almost a tab's worth of space between the last letter and the period. U.S. looks like US. This happens both with reports that were created in VS2008 and ones that were created in VS2010. It is only a problem in the viewer's display - if we print to a printer or export to PDF the spacing around punctuation is fine. It's also not a problem on our development workstations which are running Windows 7, but is a problem on our test servers which are running Windows 2003 Server. I ran the modules tool and found that the version of usp10.dll does match what the previous thread said it should be and it's coming from the c:\program files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win32_x86\ folder. On my development machine when I run the modules tool I notice that a second instance of usp10.dll is called which is the version installed with Windows 7. We've tried changing fonts but none of the ones we've tried (originally in Times New Roman, 12, tried Arial, Times and various sizes) have made a difference. We also tried changing the print options with no improvement. The only thing that makes it slightly better is full-alignment but our customer insists that it be left-aligned.

    Re. the other thread. I never did receive a sample of the report to test with. Perhaps I can get one from you? I need you to ensure that the issue occurs with a "saved data" report. If it does, let me know if you can share it and I'll contact you via email. My comment in the other thread re. available time, priorities, etc., still applies. Also, just to be clear. Service Pack 2 for CRVS2010 is closed now. Thus if I am able to reproduce the issue the fix will be targeted for October \ November time frame - no guarantees though...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • XML Publisher showing extra spaces

    We are building a huge report using XML publisher , After building a custom report using (XML Publisher & Microsoft Document2007) , the requirement was to Show/Hide some Layouts like Table of data and Total Column depending on flag values,
    The solution for the above requirement was to use C (Conditional Region), which caused the following unwanted output:
    - Some Empty Pages (When using C before a layout table, and EC after the layout table)
    - Some vertical spaces between rows (when using C before Row and EC after the row)
    So in case the table has no data the page is still displayed which is causing to print additional empty pages.

    Try using <?if@inlines: condition?> instead of just using an <?if:?> condition and give it a try. Also ensure that there are no extra spaces in the RTF.
    Thanks,
    Bipuser

  • I would like to open different Safari windows in different Spaces

    I would like to be able to open different Safari windows in different Spaces. They guy at the Apple store told me this was impossible, but I am 99% sure that I accidentally had it working this way before I realized what Spaces was, but now that I have set my Spaces preferences, I cannot get it to work for me.
    Ideally, my husband could use one space - he only uses Safari. And I could use the other Spaces for my various applications, including Safari.
    Any suggestions appreciated!

    I do it as follows.
    I don't have Safari assigned to any (or all) spaces. I don't have the little checkbox checked at the bottom of Spaces preferences ("When switching to an application...").
    In a given space I click on Safari in the dock. This makes it the active application. Of course, if a window is already open in that space it will come to the front. But suppose there isn't a window open. I then ask for a new window (via the File menu, or via command-n). Voila. That window is in that space. You can do this in any space and the windows stay where you created them.
    (A shortcut is simply to control-click on the Safari dock icon and select "New Window".)
    charlie

  • How do you remove the extra space from the top margin when printing from a website? Already reset Firefox and checked my settings. Using Firefox 18 & Windows 8

    I have a 2" space at the top of pages that I print from websites. How do I remove the extra space? My margin settings are at .5"

    laderamacguy took a look at it and added a black shape over the tab. he suggested i use a different template next time, such as the black template.

  • Maybe you are looking for

    • Can't open files in exs24

      Referring to problem in: http://discussions.apple.com/thread.jspa?messageID=6520703 After update 8.01 opening files does work here also, but I still can't open .exs files in exs24! If I want to load files they are grey and can't be selected. Can some

    • Connected, but still no internet

      I can often get internet on my ipod touch while i'm on my college campus. but this week, i've been having trouble. i can connect to the wi-fi network, but safari still does not work. it only shows blank webpages and gives me a message that i'm not co

    • Trying to produce error message

      Hi Im fairly new to Java programming and am in the middle of completing a small assignment. I'm trying to get the program to produce an error message after it asks a user to "Press 'Q' to Quit or 'P' to Print". Although the prog doesn't carry on if a

    • JComboBox in JTreeTable

      One column in my JTreeTable (or JTable, doesn't matter) is a JComboBox. If it's a Checkbox the cell must be a "Boolean" and it's selected automatically if it's true. If I have a JLabel of JTextField the cell must be a String. But how do I set the sel

    • I'm trying to install PSE but I get a error : not a genuine copy. how can I Solve it and complete the installation?

      This is a purchased copy but I get an error saying the copy is not and the installation is terminated. Please help...