XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Gerald NelsonSubject: 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?

Regards, Jerry Nelson

Posttop
Minollo I.Subject: Re: line breaks and spaces
Author: Minollo I.
Date: 01 Mar 2002 10:09 AM
Jerry,
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:
{p}
This is statement number 1. And this is statement number 2.
{/p}

Then, trying to follow your instructions, I position the cursor after "1."
and typed Enter; the result was:
{p}
This is statement number 1.
And this is statement number 2.
{/p}

....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
an example?

BTW, currently you cannot word-wrap text in the Stylus Studio editors.

Thanks,
Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.