BhKh,

This is a common issue for new users, and as annoying as it is there are 
good reasons for it. However it has long being a "bug bear" of myself and 
many others.

The good news is;

   - You tend to get used to it
   - Quite a few existing solutions can help (many exist so I am not sure 
   where to start for you)
   - Some of us are currently working on a solution which introduces a much 
   more powerful set of choices that will all but eliminate the issue.
   - A lot of copy and pastes work out of the box with tiddlywiki already 
   so this is not a problem in many cases
   - If you wish you can copy as html and paste html into a tiddler and 
   reasonable well rendered.
   - You can also past anything into one "data tiddler" and create another 
   tiddler that extracts content from the data tiddler, according to your 
   desired rules and presents it correctly. Eg each line as a paragraph.
      - This is a powerful solution because you could past updated content 
      in the data tiddler and the same "re-parse" rules will be applied.
      - This allows one effort to parse the input that can be reused again 
      on other data with a click.
      - Note: This is a design possibility I have noted as an advanced 
      solution one-day
   
Some even find it difficult to enter two new lines to separate each line 
and paragraph and stop this concatenation occurring when rendered.

   - As you seem to have noticed if you use a Heading !! , bullet # and * 
   or ; and ; you discover that the end of line does wrap and not concatenate.
   - What you may not know each of these can be followed with one or more 
   css classnames to format that same line eg "*.classname1.classname2 Test 
   here" so you could use a class name of .green and .r to make the line green 
   and also indented from the right. 
   - Obviously the above wikitext markup are designed for lists and do not 
   have a blank line between each (when displayed)

Our recent work is to introduce a special character you can pace as the 
first character of any other line to turn each line into a html div or p 
paragraph.

   - All you need to do then in your imported text to to select all lines 
   and prefix them with this special character using an editor toolbar button 
   and they should render as expected.
   - In addition it allows the above .classname trick to be applied to any 
   line

By turning every line into a paragraph the text will not only *not 
concatenate*, but you are guaranteed to have a blank line between each 
(paragraph) and if you have surplus line feeds, these will collapse into 
one only blank line.

   - This help full when importing text.

Thus with this new solution on the cards whether you are typing it in 
yourself, or reformatting pasted content you can manipulate a whole 
line/paragraph with a few characters at the front of a line, as you already 
can with bullets etc... and if you wish apply it to multiple lines at once.

Regards
Tony


On Saturday, 5 September 2020 13:13:44 UTC+10, BhKh wrote:
>
> Hello! After about 7 years I am considering getting back into using 
> TiddlyWiki again. When Iast I used, it was 2.4.4.
>
> Now I am starting a new TW5 and I am a bit perplexed as to how to deal 
> with line breaks.
>
> I'm planning on using my wiki to collect notes clipped from other places, 
> write my own notes, and copy my notes out of TW into other things. I 
> thought that this was the primary function of TW, so this issue has me 
> scratching my head.
>
> In 2.4.3, you could simply put a line break in the editor and you got a 
> line break (new line) in the rendered tiddler.
>
> In TW5 this seems to no longer be the case. If I have ten lines of text 
> that I copy from one location into a my TW, it all gets put onto a single 
> line. Obviously not good. I can understand formatting like bold, italics, 
> and headings not surviving a copy paste. But line breaks?
>
> So I have implemented the solution here: 
> https://tiddlywiki.com/#Hard%20Linebreaks%20with%20CSS
> As I understand this solution, I'm just tagging all tiddlers that I want 
> to show the same breaks in the editor as in the final doc with a certain 
> class.
>
> Now when I paste in ten lines of text into a tiddler I get ten lines in 
> the rendered version. Great!! However, when I copy those ten lines from my 
> tiddly wiki back into another document, they are all on a single line.
>
> As well, the breaks are not shown in the preview window. There it is just 
> all one big line.
>
> So my questions are: *Am I doing something wrong? Is there a different 
> way I'm supposed to be doing things?*
>
> It seems like if TW is supposed to be for keeping notes on things, this is 
> odd behaviour. I thought I should be able to paste things in and cut things 
> out and have them at least keep line breaks. However it seems like TW is 
> now designed to be more a code editor and less a document editor. I realize 
> that the line is necessarily blurry in TW, but in the end the purpose of a 
> TW is not to write code.
>
> All the threads on this topic seem to be long and complicated and hard to 
> piece together a solution. I realize this may be difficult since different 
> people may need different solutions. 
>
> I thought I could start all tiddlers with """. However it seems that this 
> needs to be done on a paragraph by paragraph basis. If I try to make a 
> heading by typing 
> ! title
> it gets rendered literally. So that solution seems to fall into the 
> "reformat my text every time category."
>
> So keeping in mind that I plan to use my TW for collecting text, writing 
> text, and re-using text, *what is my best solution?* I really don't want 
> to have to re-format everything I paste into a tiddler. Also keep in mind 
> that I am starting fresh, so that may give more options.
>
> I'd even be fin with a solution that involved copy and pasting through 
> some sort of intermediary system if it was a simple as pasting it in and 
> copying it out.
>
> Thanks! I appreciate everyone's contributions over the years I have been 
> away!
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/da216a56-0535-4bf7-ade3-a1f3edf889e8o%40googlegroups.com.

Reply via email to