Hi Richard

This is useful to know. Perhaps the information about this can be amended 
to add a note about the care needed in applying such formatting (and 
perhaps even adding use of the <pre> </pre> tags as an alternative).
https://tiddlywiki.com/#Hard%20Linebreaks%20in%20WikiText

Cheers
Andrew Mc

On Sunday, December 3, 2017 at 10:21:58 AM UTC+13, RichardWilliamSmith 
wrote:
>
> Hi,
>
> When you block format a paragraph, it gets split into separate lines so 
> you need to style them separately:
>
> """
> //This is a line//
> ''and this is a new line''
> //while this is yet another line//
> """
>
> The issue is with how HTML itself treats block and inline elements, I 
> think.
>
> Regards,
> Richard
>
>
>
> On Sunday, November 26, 2017 at 1:32:46 PM 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/a58cd3b1-83df-4852-995c-648ce76d6722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to