Monospaced text doesn't wrap?

67 views
Skip to first unread message

Tank

unread,
May 15, 2006, 8:10:42 AM5/15/06
to TiddlyWiki
I just pasted text that I copied from a word document, and set it to
monospaced type using:

{{{
text here
}}}

Fos some reason, the lines aren't wrapping. I have whole paragraphs
that extend itno one long sentence.

Any ideas how to change this?

Thanks.

Tim

Eric Shulman

unread,
May 15, 2006, 8:23:51 AM5/15/06
to TiddlyWiki
> monospaced type using:
> {{{
> text here
> }}}
> that extend onto one long sentence.

When {{{...}}} is used 'inline' with other content, it is processed as
"character mode" formatting, and word wrapping is applied to your
content. BUT... when {{{ and }}} are placed on separate lines *by
themselves* (note: without any leading/trailing 'whitespace'), your
content is processed as "line mode" formatting, without word wrapping
(and usually with with additional styles as well)

Try these examples in a tiddler to see the difference:
--------------------------------
monospacedByChar:
before {{{this is a long sentence that can be used to check the word
wrap display when a large amoung of text is being monospaced, possibly
onto several lines}}} after
--------------------------------
monospacedByLine:
before
{{{
this is a long sentence that can be used to check the word wrap display
when a large amoung of text is being monospaced, possibly onto several
lines
}}}
after
--------------------------------

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Tank

unread,
May 15, 2006, 8:47:18 AM5/15/06
to TiddlyWiki
Thanks! That didn't quite solve my issue but it certainly sheds some
light on it.

monospacedByChar turned the entire page into one big block of text.

monospacedByLine keept the lines separate, however each one appears as
one long line.

Other than actually putting a hard line break in the text, is there
another way to accomplish this?

Eric Shulman

unread,
May 15, 2006, 9:18:26 AM5/15/06
to TiddlyWiki
> Other than actually putting a hard line break in the text, is there
> another way to accomplish this?

If you just want a monospaced typeface, but normal formatting
otherwise, you could use the @@...@@ syntax to specify a different CSS
"font-family" property value:

------------------------
@@font-family:courier;put your wiki-ready content here
including empty lines

and formatting like
*bullets
__underlines__
<<<
block quotes
<<<
all in courier font!
@@

Tank

unread,
May 15, 2006, 9:32:29 AM5/15/06
to TiddlyWiki
THAT was the answer i needed. Thanks for the help.

Tim

Daniel Baird

unread,
May 15, 2006, 7:25:28 PM5/15/06
to Tiddl...@googlegroups.com

It might be more convenient to use this format:

{{monoformat{
stuff here
}}}

..that gives you a span with a class of "monoformat" that you can target with a css rule (and probably include display: block, if you want block formatting).  That way you won't need to repeat a big list of css properties every time you want to go into mono format.

;Daniel


On 5/15/06, Tank <tsulliv...@gmail.com> wrote:

THAT was the answer i needed.  Thanks for the help.

Tim







--
Daniel Baird
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things That Suck)
Reply all
Reply to author
Forward
0 new messages