Answers.Body: <p>If the rendering implementation supports this, You might want to wrap that string in a <code>span</code> tag and add the <code>white-space: nowrap</code> style. </p>
  
  <p><a href="https://codepen.io/mindenjobb/pen/PooZbQV" rel="nofollow noreferrer">You can see it here in action</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-12T19:03:41.623Z
Answers.Text: I'll give this a shot as a workaround and see how it behaves on different ereaders. But I have many such character sequences in the document and since this is html/epub generated from markdown I'm not too keen on cluttering up my source with such span tags.
Answers.UserDisplayName: Chris Jones
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-12T19:06:49.350Z
Answers.Text: Perhaps I need to take this up with the renders' developers… Basically I have an exclamation mark or question mark followed by en ellipsis with **no** intervening white space and I don't see why the render would decide to insert a line break between the two.
Answers.UserDisplayName: Chris Jones
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-12T19:10:49.633Z
Answers.Text: Additional problem is that I haven't been able to think of a way to build a test that would reproduce the problem reliably… which makes it difficult to verify tha the workaround actually works…
Answers.UserDisplayName: Chris Jones
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-12T09:22:29.270Z
Answers.LastActivityDate: 2019-10-12T09:22:29.270Z
Answers.UserDisplayName: Zsolt Botykai
Body: <p>I'm currently doing an epub where the original scanned pdf has many "xxx !…" — that's any word (xxx)… followed by a thin space… followed by an exclamation mark, followed by an ellipsis.</p>
  
  <p>In unicode code points: xxx U+202f U+0021 U+2026 </p>
  
  <p>I use a bunch of different e-reader apps on android or Kobo and I noticed that occasionally when justification sends the "!" to the end of the line, the ellipsis flows over to the next line. As a result when this ellipsis is the last character of a paragraph I end up with a line with just the ellipsis sticking out like a sore thumb.</p>
  
  <p>Obviously I would like to avoid this and have the ellipsis stay where it belongs, next to the exclamation mark with no intervening space. The original appears to follow the typesetting standards for French literature in the 19th century and I don't wish to mess with that and change this typesetting quirk to something else. </p>
  
  <p>I did a pdf of the same text using LaTeX and haven't noticed the same thing happening. </p>
  
  <p>How would I go about fixing this annoying problem with epub/html?</p>
  
  <p>Thanks,</p>
  
  <p>CJ</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-17T19:50:41.513Z
Comments.Text: This answer may provide some other options to explore: https://stackoverflow.com/a/11393767/1781075
Comments.UserDisplayName: Arthur
Tags: <epub>
Title: Ellipsis flowing to next line in epub
UserDisplayName: Chris Jones
ThreadText: # Ellipsis flowing to next line in epub
  
  (Asked by: username_0 on 2019-10-11)
  
  I'm currently doing an epub where the original scanned pdf has many "xxx !…" — that's any word (xxx)… followed by a thin space… followed by an exclamation mark, followed by an ellipsis.
  
  In unicode code points: xxx U+202f U+0021 U+2026
  
  I use a bunch of different e-reader apps on android or Kobo and I noticed that occasionally when justification sends the "!" to the end of the line, the ellipsis flows over to the next line. As a result when this ellipsis is the last character of a paragraph I end up with a line with just the ellipsis sticking out like a sore thumb.
  
  Obviously I would like to avoid this and have the ellipsis stay where it belongs, next to the exclamation mark with no intervening space. The original appears to follow the typesetting standards for French literature in the 19th century and I don't wish to mess with that and change this typesetting quirk to something else.
  
  I did a pdf of the same text using LaTeX and haven't noticed the same thing happening.
  
  How would I go about fixing this annoying problem with epub/html?
  
  Thanks,
  
  CJ
  
  **Tags:** epub
  
  > **Comments:**
  > **username_1**: This answer may provide some other options to explore: https://stackoverflow.com/a/11393767/1781075  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-10-12. Score: 1
  
  If the rendering implementation supports this, You might want to wrap that string in a `span` tag and add the `white-space: nowrap` style.
  
  [You can see it here in action](https://codepen.io/mindenjobb/pen/PooZbQV).
  
  > **Comments:**
  > **username_0**: I'll give this a shot as a workaround and see how it behaves on different ereaders. But I have many such character sequences in the document and since this is html/epub generated from markdown I'm not too keen on cluttering up my source with such span tags.  
  > **username_0**: Perhaps I need to take this up with the renders' developers… Basically I have an exclamation mark or question mark followed by en ellipsis with **no** intervening white space and I don't see why the render would decide to insert a line break between the two.  
  > **username_0**: Additional problem is that I haven't been able to think of a way to build a test that would reproduce the problem reliably… which makes it difficult to verify tha the workaround actually works…  
  
  ---
  
  