Andrew, TiddlyWiki is fantastic as responding to most of html, a Quick check of the CSS rules shows you can add styles or classes to most HTML elements, including Pre
https://www.w3schools.com/cssref/css_websafe_fonts.asp <pre style="font-family: Times New Roman, Times, serif;" > Some text </pre> <pre style="font-family: Impact, Charcoal, sans-serif;" > Some text </pre> or <pre class="classinstyleshhet" > Some text </pre> Regards Tony On Sunday, 3 December 2017 07:50:08 UTC+11, AndrewMc wrote: > > Thanks Tony > > The use of <pre> </pre> tags does indeed give the desired line layout. It > also allows the use of wikitext formatting such as ''bold'' and > //italics//. However, it does also give a fixed-spacing font which may not > be desired. > > Cheers > Andrew Mc > > On Wednesday, November 29, 2017 at 2:12:24 PM UTC+13, TonyM wrote: >> >> As Suggested, I did the Homework for you. >> >> Try this - wrap in a <pre> tag, not tiddler links still work >> >> <pre> >> Text in a pre element >> is displayed in a fixed-width >> font, and it preserves >> both spaces and [[HTML use in Tiddlers]] >> line breaks >> </pre> >> >> Regards >> Tony >> >> On Sunday, 26 November 2017 13:32:46 UTC+11, AndrewMc wrote: >>> >>> Hi All >>> >>> I need to have hard linebreaks appear in some of my text (a quoted part >>> a poem). >>> I followed the instructions at >>> https://tiddlywiki.com/#Hard%20Linebreaks%20in%20WikiText and >>> successfully had the line breaks appear. >>> However, as soon as I added italics or bold formatting to the entire >>> block of text, the line breaks disappeared. >>> >>> The following wikitext works: >>> """ >>> This is a line >>> and this is a new line >>> while this is yet another line >>> """ >>> >>> This is a line >>> and this is a new line >>> while this is yet another line >>> ------------- >>> >>> However, adding italics or bold to the inside of the whole block removes >>> the line breaks: >>> """ >>> //This is a line >>> and this is a new line >>> while this is yet another line// >>> """ >>> >>> """ >>> ''This is a line >>> and this is a new line >>> while this is yet another line'' >>> """ >>> >>> *This is a line and this is a new line while this is yet another line* >>> >>> >>> *This is a line and this is a new line while this is yet another line* >>> >>> Note that the italics (or bold) formatting doesn't have to surround the >>> whole block of text for the line breaks to be affected. If the formatted >>> text encompasses a line break, then that line break will not appear. >>> ------------- >>> >>> If I put the formatting outside the hard line break block, then both the >>> formatting and the line breaks appear: >>> >>> //""" >>> This is a line >>> and this is a new line >>> while this is yet another line >>> """// >>> >>> >>> >>> *This is a lineand this is a new linewhile this is yet another line* >>> >>> Is this expected behaviour, or have I discovered a small bug in the >>> wikitext processing? >>> >>> Cheers >>> Andrew Mc >>> >> -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/926ca374-d17f-4786-be40-57252ceead10%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

