On Tuesday, March 18, 2014 6:08:01 PM UTC-7, amagic...@gmail.com wrote:
>
> Some of the entries I have, for example, rather long sections all in the 
> 2nd level of an ordered list (i.e. - "**text"). The issue I'm facing is 
> that, if I press enter (to neaten this text), the text moves from the 
> second level to a new, regularly aligned paragraph. Instead, I've been 
> using <br>, which allows the text I type after to start on a new line, but 
> stay aligned w/ the 2nd level. 
> The problem is that, after a long section, it's a *mess. *Just one thick 
> paragraph of symbols and <br>'s.
> My question is: Is there a way/plugin that makes TiddlyWiki ignore 
> enter-presses—so that every new line would *require *<br>, and I could 
> use enter-presses to basically just be formatting for the edit-window (this 
> would also require some kind of indicator allowing TiddlyWiki to know that 
> I want to leave the 2nd level of an ordered list and go back to normal 
> alignment)?
>
> I would like:
>
> **//Example:// <br>
> Section 1 <br>
> Line 1 <br>
> Line2 <br>
> <br>
> Section 2 <br>
> Line 3<br>
> Line 4<br>
>
> To look like this: 
>
>    - *Example:* 
>    Section 1 
>    Line 1 
>    Line2 
>    
>    Section 2 
>    Line 3
>    Line 4
>
> *... *Maybe there's some kind of white-space delimiter that I'm missing? 
> That is, perhaps I should be using something as simple as the 
> tab-equivalent in word processors? (Which... I'm not sure I know.)
>

You can use the "CSS class wrapper" syntax, {{classname{...content...}}} to 
create an extended multi-line entry that will be properly nested in bullet 
items, like this:

**//Example://{{foobar{
Section 1
Line 1
Line2

Section 2
Line 3
Line 4
}}}

Start the wrapper on the same line as the bullet item itself.  The wrapper 
is only being used to create a 'containing element' for the multi-line 
content, so the classname ("foobar") can be anything you like... in fact, 
it doesn't even have to be a defined classname unless you want to apply 
some specific styles to the bullet content.  Everything inside the wrapper 
will be rendered at the same bullet indent level, even if it contains 
newlines.  The bullet item is only terminated when a closing "}}}"+newline 
sequence is reached.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to