Strange problem - Extra space coming before period.

I have a strange problem with CR 2008 SP2. I tried in SP3 also . Same problem exists.
Consider a text like "Configuration.". If I add this text in designer and use a preview is shows like "Configuration.". But when I run the report , it displays like "Configuration  .".  Note the extra spaces coming before period. I am using win xp . And using win form application. The font used Times New Roman. This issue is common to any text shown in report. Where ever a period is displayed , extra space is coming . How to solve this issue.

There is an "fix" which has been intentionally not documented in release notes as itu2019s a new hidden API added in XIR2 SP4 and XI3.1 that could cause problems with rendering of other fields.  To activate the fix, a configuration file has to be added to the project, called "app.config" (.NET 2.0) and it contains the following information. Then rebuild the solution. Please test thoroughly...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="businessObjects">
      <sectionGroup name="crystalReports">
        <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <businessObjects>
    <crystalReports>
      <crystalReportViewer>
        <add key="AntiAlias" value="true"/>
      </crystalReportViewer>
    </crystalReports>
  </businessObjects>
</configuration>
Ludek

Similar Messages

  • Clearfloat problem-extra space remains in IE

    Hi,
    I've worked on this problem, did the Google thing, but I just
    can't resolve it. There is extra space remaining under the image
    even after using clearfloat. I want the bottom border to snug up to
    the bottom of the image, but somehow in IE I keep getting that
    horrible gray space.
    Main
    page-with troublesome space below before footer
    Thanks so much for helping... as always!
    Cheers,
    Janell

    I don't see an extra space problem related to floats in IE6
    but I do see a
    gray png background image under the spash-text. Pre-IE7
    browsers do not
    support alpha transparency on png images. If you get rid of
    the bg image,
    you'll see better results in IE. Or do a search for IE
    conditional comments
    or the IE star hack to serve a different image to pre-IE7
    browsers.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Janell1" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi,
    > I've worked on this problem, did the Google thing, but I
    just can't
    resolve
    > it. There is extra space remaining under the image even
    after using
    > clearfloat. I want the bottom border to snug up to the
    bottom of the
    image,
    > but somehow in IE I keep getting that horrible gray
    space.
    >
    http://www.acmedigitaldesign.com/marmit/index.html
    > Thanks so much for helping... as always!
    > Cheers,
    > Janell
    >
    > @charset "UTF-8";
    > body {
    > margin: 0; /* it's good practice to zero the margin and
    padding of the
    body
    > element to account for differing browser defaults */
    > padding: 0;
    > text-align: center; /* this centers the container in IE
    5* browsers. The
    text
    > is then set to the left aligned default in the
    #container selector */
    > color: #000000;
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 100%;
    > background-color: #000000;
    > }
    > .oneColFixCtrHdr #container_entirepage {
    > width: 780px;
    > margin: 0 auto; /* the auto margins (in conjunction with
    a width) center
    the
    > page */
    > }
    > .oneColFixCtrHdr #container {
    > width: 780px; /* the auto margins (in conjunction with a
    width) center
    the
    > page */
    > border: 1px solid #a9a69a;
    > text-align: left; /* this overrides the text-align:
    center on the body
    > element. */
    > background-color: #3b3b3b;
    > margin-top: 0;
    > margin-right: auto;
    > margin-bottom: 0;
    > margin-left: auto;
    > padding-bottom: 0px;
    > }
    >
    > .oneColFixCtrHdr #header {
    > background-color: #3b3b3b;
    > padding-top: 5;
    > padding-right: 20px;
    > padding-bottom:5;
    > padding-left: 20px;
    > }
    > ul.MenuBarHorizontal ul {
    > margin: 0; /* zeroing the margin of the last element in
    the #header div
    will
    > avoid margin collapse - an unexplainable space between
    divs. If the div
    has a
    > border around it, this is not necessary as that also
    avoids the margin
    collapse
    > */
    > padding: 10px 0; /* using padding instead of margin will
    allow you to
    keep
    > the element away from the edges of the div */
    > }
    > .oneColFixCtrHdr #mainContent {
    > background-color: #3b3b3b;
    > padding-top: 0;
    > padding-right: 0px;
    > padding-bottom: 0;
    > padding-left: 0px;
    > height: auto;
    > }
    >
    > .oneColFixCtrHdr #footer {
    > background:#000000; /* this padding matches the left
    alignment of the
    > elements in the divs that appear above it. */
    > text-align: center;
    > padding-top: 0;
    > padding-right: 10px;
    > padding-bottom: 0;
    > padding-left: 10px;
    > }
    > .oneColFixCtrHdr #footer p {
    > font-family: Geneva, Arial, Helvetica, sans-serif;
    > font-size: 80%;
    > line-height: 1.5em;
    > font-weight: 100;
    > color: #777777;
    > text-decoration: none;
    > margin: 0; /* zeroing the margins of the first element
    in the footer
    will
    > avoid the possibility of margin collapse - a space
    between divs */
    > padding: 10px 0; /* padding on this element will create
    space, just as
    the
    > the margin would have, without the margin collapse issue
    > text-align: center;
    > }
    > .oneColFixCtrHdr #footer p a:link {
    > color: #c4a561;
    > text-decoration: none;
    > }
    > .oneColFixCtrHdr #footer p a:visited {
    > color: #c4a561;
    > text-decoration: none;
    > }
    > .oneColFixCtrHdr #footer p a:hover {
    > color: #ea9c15;
    > text-decoration: none;
    > }
    > .oneColFixCtrHdr #footer p a:active {
    > color: #ea9c15;
    > text-decoration: none;
    > }
    >
    >
    >
    > /* Below are the designer's custom layout styles */
    >
    > .image_aligncenter {
    > padding-top: 20px;
    > padding-right: 30px;
    > padding-bottom: 0px;
    > padding-left: 30px;
    > }
    > .armitage_sig {
    > clear: none;
    > float: right;
    > z-index: 1090;
    > }
    > .large_image_z {
    > z-index: 1090;
    > }
    > .splash_textover {
    > float: left;
    > z-index: 3000;
    > background-image:
    url(images/splash/transparent_png.png);
    > clear: none;
    > height: auto;
    > width: 400px;
    > position: relative;
    > top: -75px;
    > left: 20px;
    > font-family: Verdana, Arial;
    > font-size: 14px;
    > line-height: 1.2em;
    > font-weight: 100;
    > color: #bcb9ab;
    > text-decoration: none;
    > }
    > .clearfloat {
    > clear:both;
    > height:0;
    > font-size: 1px;
    > line-height: 0px;
    > overflow: hidden;
    > }
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <meta name="description" content="Sculpture &
    Fine Art pieces by Los
    Angeles
    > based Michelle Armitage specializing in bronzes, steel,
    stone, and
    mixed-media.
    > Art commisions welcome. " />
    > <title>Sculptor, Fine Artist, All
    Media</title>
    > <link href="oneColFixCtrHdr.css" rel="stylesheet"
    type="text/css" />
    > <script src="SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    > <link href="SpryAssets/SpryMenuBarHorizontal.css"
    rel="stylesheet"
    > type="text/css" />
    > </head>
    >
    > <body class="oneColFixCtrHdr">
    > <div id="container_entirepage">
    >
    > <div id="container">
    > <div id="header">
    >
    > <ul id="MenuBar1" class="MenuBarHorizontal">
    > <li><a href="index.html" title="Home
    ">HOME</a> </li>
    > <li><a href="artist.html" title="The
    Artist">THE ARTIST</a></li>
    > <li><a class="MenuBarItemSubmenu"
    href="gallery.html"> GALLERY</a>
    > <ul>
    > <li><a href="gallery.html"
    title="Gallery">MAIN
    GALLERY</a></li>
    > <li><a href="steel.html" title="Steel
    Gallery">STEEL</a></li>
    > <li><a href="stone.html" title="Stone
    Gallery">STONE</a></li>
    > <li><a href="bronze.html" title="Bronze
    Gallery">BRONZE</a></li>
    > <li><a href="largerworks.html"
    title="Larger-works">LARGER
    > WORKS</a></li>
    > <li><a href="mixedmedia.html"
    > title="Mixed-Media">MIXED-MEDIA</a></li>
    > </ul>
    > </li>
    > <li><a href="exhibitions.html"
    title="Exhibitions">EXHIBITIONS</a></li>
    > <li><a href="contact.html"
    title="Contact">CONTACT</a></li>
    > </ul>
    >
    > <!-- end #header --></div>
    >
    > <div id="mainContent">
    >
    > <div class="image_aligncenter"
    align="center"><img
    > src="images/splash/splash_title.gif" alt="Armitage
    Design presents the
    work of
    > Michelle Armitage" width="661" height="169"
    align="center"/></div>
    > <div class="large_image_z"><img
    src="images/splash/splash_sculpt.gif"
    > alt="Sculpture" width="776" height="381"
    /></div>
    > <div class="splash_textover">
    > Sculpture &amp; Fine Art pieces by Los Angeles based
    Michelle
    Armitage
    > specializing in bronzes, steel, stone, and mixed-media.
    Art commissions
    welcome.
    > </div>
    > <!-- end #mainContent --></div><!-- end
    #container --></div>
    > <br class="clearfloat" />
    > <div id="footer">
    > <p align="center">&copy;2008 Michelle
    Armitage<br />
    > <a href="index.html">home</a> | <a
    href="artist.html">artist</a> | <a
    > href="gallery.html">gallery</a> | <a
    href="exhibitions.html">exhibitions</a> |
    > <a href="contact.html">contact</a></p>
    > </div>
    > <!-- end #footer -->
    > </div>
    >
    > <script type="text/javascript">
    > <!--
    > var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    > {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    > imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    > //-->
    > </script>
    > </body>
    > </html>
    >

  • Script for Required fields acting strange on extra spaces at end of Name/Description

    Found this script on this forum, which I added to my submit button.
    var emptyFields = [];
    for (var i=0; i<this.numFields; i++) {
         var f= this.getField(this.getNthFieldName(i));
         if (f.type!="button" && f.required ) {
              if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name);
    if (emptyFields.length>0) {
         app.alert("Error! You must fill in the following fields:\n" + emptyFields.join("\n"));
    Great script but the ERROR! popup was not coming up until I went into InDesign and removed extra spaces after "(g)" Description and Names.
    I am new at this, can someone let me know of any rules for naming these fields such as using underscores, or any other illegal chacters.

    Jeff,
    The SQL in the script file is below.  To be honest, I have reduced it down to a simple select from dual and it still puts extra spaces at the end of the single line.
    col ord noprint
    spool test.csv
    SELECT  ' ' ord,
      'ZONE_ORDER_NUMBER'||','||
      'ZONE_NAME'||','||
      'ZONE_TYPE'||','||
      'DESCRIPTION'||','||
      'START_DATE'||','||
      'END_DATE'
    FROM dual
    UNION ALL
    SELECT zone_name ord,
      '"'||zone_order_number||'"'||','||
      '"'||zone_name||'"'||','||
      '"'||zone_type||'"'||','||
      '"'||description||'"'||','||
      '"'||TO_CHAR(start_date,'DD-MON-YY')||'"'||','||
      '"'||TO_CHAR(end_date,'DD-MON-YY')||'"'
    FROM zones
    ORDER BY ord;
    spool off

  • Extra Space coming while looping through Hash Set in JSP: URGENT

    Hi,
    I have to loop through the Hash Set in jsp, and display the contents with a comma seperated list.
    I am able to display the values withing the set, however.. after every value,
    i am getting an extra space and then a comma. How do i get rid of this extra space?
    Below is the code snippet
    <% Set tagSet = new HashSet();
         tagSet = (Set)request.getAttribute(PhotoConstants.REQ_RELATED_TAGS);     
         Iterator i = tagSet.iterator();     
         while(i.hasNext()){
         String tagName=(String)i.next();
    %>
    <a href="/outlook/photo/keywords?keywords=<%=URLEncoder.encode(tagName)%>"><%=tagName%></a>
    <%if(i.hasNext()==true){%>,<%}%>
    <%}%>
    I am getting following output:
    NY , sky , Sports & Recreation , clouds , New York City , New York
    Expected Output:
    NY, sky, Sports & Recreation, clouds, New York City, New York
    I want space after a comma, not befor comma...
    Any help is really appreciated..
    Thanks
    Deepti

    <% while(i.hasNext()) {
        String tagName=(String)i.next(); %>
        <a href="/outlook/photo/keywords?keywords=<%=URLEncoder.encode(tagName)
        %>"><%=tagName%></a><%if(i.hasNext()==true){ %>,<% } %>
    <% } %>I think this is an html whitespace thing... try moving your code around to look like what's above (ie move the end of line to inside your scriptlet tag)
    Code looks OK...

  • 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

  • Strange Problem With Extra Spaces

    Hello,
    My development staff is experiencing a very strange problem with our JSP pages which display the values from a JDBC result set. We have two environments here: development and production. We have been creating pages in development which work out fine in our development environment. But when we move the page into production, each value which results from the ResultSet getString() method is having multiple blank spaces appended to the end of the value. So, for example, a 5 digit zip code field is really showing up with a length of 8 or 9 because there are extra spaces added to the end of the value.
    We are able to work around this problem by using the trim() method, but this is getting quite tedious to do to every single page in the site. It is very annoying because the problem does not exist in the development environment.
    So you figure there must be a difference in our development and production environments. But there really isn't. Here is the details for both environments:
    OS: Windows NT 4.0
    Web Server: Apache with Tomcat setup as a plugin
    Database: Sybase ASA 6.0.3
    JDK: 1.3
    Apache and Tomcat were installed from the same download on both servers. Sybase was installed from the same CD on both servers - and the JDBC Driver (SybDriver) was copied from one server to the next.
    Sorry for the long explanation - but does anyone have any idea what could be occurring? Why are the extra spaces being appended to the production pages and not the development pages?
    As always, thanks in advance for any suggestions!
    -- Chris

    Hello Paul,
    Thank you for taking the time to analyze this case.
    The data in the system comes from two different sources. The first source is a nightly feed from a legacy system. The second source is user input via the JSP application. The records that were inserted from the nightly feed have an accurate length() value (meaning there is no untrimmed spaces trailing along.) But the values coming in from the application have extra spaces appended to them. In the development environment, however, both sources provide properly trimmed data.
    If I enter an 8 character last name into the web form in the production app, the value which ends up in the database upon submission will have 2 to 3 extra spaces. I know that this sounds strange - and believe me, it is boggling everyone here. I suspect this problem has to do with the Tomcat installation - even though it was installed identically in each server.
    I think we are just going to have live with using the trim() for every database submission. As always, thank you for the help, and all ideas are always welcome.
    -- Chris

  • 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.

  • I updated to 8.1.3 on my 5s and my very important notes are gone!I bought extra space in icloud and backed up to icloud before the upgrade. Should n\my notes not be there somewhere? Where?

    I updated my 5s to 8.1.3 and my very important notes are gone. Before the upgrade I bought extra space in icloud and backed up to icloud. Should my notes not be there? Where? How do I get them back?

    i did go to notes in gmail and none of thm where there but i havent connected my ipod to a computer for about a month so majoriy of the important ones will be backed up i hope to god  thank you

  • Extra Space before Business Catalyst Web Apps

    Hi there,
    I just got the update and now my Business Catalyst web apps have an extra space before they show up on the page. You can see an example on my website here. The pink box is the web app. I've tried to do everything I can think of but it's not working, it will either have 2 spaces or more.

    Hi,
    I further investigate the issue and found there is some rectangle in between the text and the form, causing this extra space. Please refer to the following screenshot: http://screencasteu.worldsecuresystems.com/aish/2013-12-21_0326.png
    Please make sure there is no extra/empty rectangle in between the text and the form. If the issue is still unresolved, please send the file as per your convenience and we'll further look into it.
    Regards,
    Aish

  • Having problem with extra space below footer (sticky footer already checked)

    Hi there, im having this problem after updated my adobe muse cc. For some reason there is extra space below the footer.
    It looks fine when i try to view them offline, but when I upload them, the extra space appears. Here's the url for both of the website with extra space below
    1. http://unionvisual.web.id/home-page.html
    2. PT-Smas

    Hi there
    Thx for your reply, is here i upload my screenshot
    and here

  • Why is there a thin dark line between two of my three cover images that wasn't there before?  When I delete the images, you can tell that there is extra space between the first two image boxes.

    Getting ready to purchase my first book, I looked over everything once more and noticed that there is now a thin gray line between the first two of my three cover images.  I believe this may have happened when I switched out the left image.  When I delete the images, you can see an extra space between the center and left image boxes.  How can I fix this without starting over?

    What size book? Are you previewing this way -
    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    LN

  • 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]

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

    Hello,
    We have a Windows Form application developed in VS 2010 using the Crystal 2008 for VS 2010 runtime. We are having issue with extra spaces in text objects. For example: in a report header we have an object that has text similar to this:
    This report will print a list of all Serial Numbers in the Serial Table that are missing related Serial Meter records.
    When we run it within Crystal 2008 Designer, it looks great; however, when we run it from the Windows Viewer we developed, it looks like this:
    This report will print a list of all Serial Numbers in the Serial Table that are missing related Serial Meter records    .
    The viewer places extra spaces between records and the period (.).  We also noticed it places spaces in phone numbers:
    952 -555-555
    There's an extra space between the 2 and the dash (-).
    One thing we noticed is, if you change the viewer zoom to 98%, then the extra spacing goes away.
    We just upgraded to SP1 for Crystal 2008 for VS 2010 and still the same issue. We are referencing these DLLS: CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource, CrystalDecisions.Shared, and CrystalDecisions.Windows.Forms all version are 13.0.2000.0.
    Any help would be great.
    Thank you,
    Tyler

    Hi Tyler,
    I copied the text from your other post into a new report and changed the fonts and previewed in my C# test app and I don't see the 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 952-555-555 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."
    I threw in the telephone number also you noted in this post.
    I created a new report and copied the text above into a text object and then previewed. I then changed the fonts to various types and I don't see the problem.
    I also used Courier New because it's a fixed font layout, meaning the same letter always uses the same amount of space, and it shows just fine also.
    I've seen issues where the Video driver and screen size can affect the spacing. Usually updating the Video driver or changing your screen resolution resolves the problem.
    What Video Drivers and Monitor are you using?
    And What OS?
    Thank you
    Don

  • 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.)

  • Extra spaces added (that I can't get rid of) when using STHeiti font.  Anything I can do?

    Hi there,
    When I use the font that I want to use (STHeiti), extra spaces get added automatically—spaces that, by the way, I can’t ‘delete’—after every apostrophe (or single quotation mark).  See screen grabs below:
    Here's another example:
    Do you know how I can make these spaces go away?  When I do a search on the internet (InDesign STHeiti), I see that others have had other types of problems with this font… having to do with exporting a finished project to pdf and getting it printed. 
    In the context of talking about it, one person says that the STHeiti font "is installed as part of the Apple operating system, and is probably only meant for onscreen display".
    But someone else adds:  "the font is installed, by default, on all macs running 10.4 and above (possibly further back than that, but lets go with what we know), so opening the file at the printers on such a mac will have the font available”
    I'm on my Mac, though (not yet ready for the printer), so why do I have a problem using this font?
    I know I could use another font, but this STHeiti is a really nice one!
    Thanks for any advice,
    Malcolm

    Wow... that works beautifully.
    I've done it, but before proceeding too much further I'll google and try to find out more about this "Use Typographer's Quotes" setting.  Don't want it to bite me down the road.
    Thanks very much for the tip—
    Malcolm

  • Maybe you are looking for

    • Cant find instant message on my mac book pro

      im running snowleopard on my mac book pro and i cant acess or find my instant messaging, no icon, and cant find it in finder or anywhere??? i bought it in 2011, its actually my sisters, my 2009 MBP works fine, any answers out there?

    • Help! ID Nightmare!

      My 8 year old grandson has set his curve 9320 with a BB ID of a mis spelt email address and has forgotten his password! We can't use the forgot password option as he doesnt get the email. Can someone help us resolve this mess please? even if it means

    • My webcam is poor quality...

      Heya - so I just upgraded from the old MacBook Pro's to a new one. And the video quality is terrible for my webcam on this one! I'm a web developer, and I was one facebook and I noticed when it is initializing the camera for a split second it shows i

    • I get a blank new window when I try to view a pdf online

      I get a blank window when I try to view a pdf online

    • Differences between Captivate 6 and 8

      Could someone please tell me what Captivate 6 does not have in comparison to Captivate 8?