Is there another way to do hard line breaks instead of the """ ? That way, all I write will not clump into a long paragraph, instead they appear like one sentence per line? How to make it globally?
Thanks!
Besides the triple double-prime marks (“dumb” quote-marks), you could try this plugin called space space newline, which effectively allows you to force a line break by typing two spaces prior to your return.
If I recall correctly, there are some pretty hard-to-dismiss reasons (related to distinguishing block vs inline formatting?) that text wrapping across line breaks (except where there’s an empty line between) works as it does.
Have a look at Hard linebreaks with CSS. It may be an option too.
@gypsygoose I understand why you want this, but although I have a number of work arounds, especially for reformatting incoming content, however I came to just accept it, using <enter> for new sentence and <enter><enter> for new paragraph. This is also useful if later you want to transform text programmatically.
- Remember if you apply bullets or other wikitext the formatting improvers and you can apply it to multiple lines at once.
@pmario Thanks very much for this!
I could imagine that if someone imported a batch of poems, for example, only a solution like this would really make sense. One doesn’t want to go through, tiddler by tiddler, adding triple-quote strings at top and bottom, or using the space-space-newline solution!
I just saw your reply! Thank you very much!
This is great and solves a (hopefully short-term) quirk situation I have with a tid.
however I noticed the css doesn’t apply to the preview! (screenshot from the example on tiddlywiki.com for easy repeatability)
Is this a case where there is an easy workaround or fix, or (as I suspect) are there good reasons custom CSS isn’t applied to the preview, and/or it’d be non-trivial to change?
edit: found a workaround: using the “quickedit” described here: Project 2036: the future of TiddlyWiki - #72 by diligent_path …I can edit the tid and the “live” version is updated with CSS applied
You can add .tc-tiddler-preview-preview to the CSS, like this:
[data-tags*="example-hardlinebreaks"] .tc-tiddler-body,
[data-tags*="example-hardlinebreaks"] .tc-tiddler-preview-preview {
word-break: normal;
word-wrap: break-word;
white-space: pre-wrap;
}
-e
