Subject:line breaks and spaces Author:Gerald Nelson Date:01 Mar 2002 08:43 AM
Sometimes I have a bunch of sentences inside a para tag and I want to see them without scrolling like crazy so I put a carriage return after the end of a sentence. Stylus automatically formats the new line with a bunch of tabs but seems to delete the space. Then when my xml is converted to html I end up with no space after the period at the end of the sentence. Is this kosher behavior for stylus and I need to modify how I deal with the xml/html conversion or should stylus be fixed?
More generally there are times when I'd like to have word wrap in my xml document. Is that an option?
Subject:Re: line breaks and spaces Author:Minollo I. Date:01 Mar 2002 10:09 AM
we've tried understanding reproducing the problem you described, but
with no luck.
I tried building a simple test, in which I have a stylesheet generating
HTML which has a fragment of text like this:
This is statement number 1. And this is statement number 2.
Then, trying to follow your instructions, I position the cursor after "1."
and typed Enter; the result was:
This is statement number 1.
And this is statement number 2.
....where Stylus added a bunch of tabs (or spaces depending on the Option
settings) to keep the two lines of text at the same starting column.
Generating HTML in *both* cases, the browser preview displays
"This is statement number 1. And this is statement number 2."
(yes, with a space after "1."); this is the way HTML handles whitespaces
(any sequence of newlines+tabs+blanks is converted in one blank).
This is a reasonable behavior from what I can tell; so I guess I'm
misunderstanding your problem.
Can you describe what you are seeing/doing in more details, possibly with
BTW, currently you cannot word-wrap text in the Stylus Studio editors.