[BUG] Rendering non-breaking spaces in preview
CompletedWhen a Markdown (*.md) file contains a non-breaking space (typed via Option+Space) or an HTML (*.html) file contains a entity, these are not treated as non-breaking spaces in preview mode.

-
If you send the text file you are using, I'll take a look.
0 -
Fletcher Penney, what's the best way to send the files to you?
0 -
You can use the "submit a request" link in the upper right of this site.
0 -
Thanks for the files.
Non-breaking spaces only go so far -- your table had a very small left column, and a much longer right column. With the preview being that narrow, the table lines had to be wrapped. That included the right column obviously, but also the left. And since there is effectively only one "word", the word had to be split in half, which meant breaking on the non-breaking space.
This is an HTML issue, not an nvUltra issue. You can create the raw HTML and test in a browser to confirm the same behavior.
Using non-breaking spaces in a place where they can actually have an impact (e.g. splitting the word "today" at the end of the right column) shows that both ` ` and `opt-space` affect the line breaking behavior.
0 -
Thanks, Fletcher Penney. I've confirmed the same behavior in Safari. Visually, I would have assumed the preview pane would have ensured the left column truly would not break (since everything in it was either a character or a non-breaking space) and the right column would have simply shrunk to accommodate the fact that the left column shouldn't allow any wrapping.
Thanks for looking into it, and really great work. nvUltra has become my default Markdown editor, and my central repository for all of my little snippets of text, Markdown and HTML. (I still use BBEdit for most actual HTML editing, but I *store* it in my nvUltra directory for easy access and easy searchability.)
0 -
Glad that got it working.
Yeah -- for actual HTML editing other editors will have more automated features (I tend to use Sublime Text, but they all tend to have mostly the same functionality from what I remember.) For me, nvUltra folders have definitely tended to become my "shoebox" folders for most of my projects as well!
0
Please sign in to leave a comment.
Comments
6 comments