ABSOLUTE beginner

I would like to save a text file into its own tiddler, especially so that I can then cut it into detail tiddlers, to help keep track of specific wording, basically as if quoting myself.

However, what happens is that ALL line breaks are completely erased. Which turns a 1500 word document into what looks like a single blindingly dense paragraph.

How do I fix this? Is the problem CSS or am I misunderstanding the function of CSS? Basically, what I know about CSS is:

It means “Custom Style Sheet.”

That’s it.

Proceed with explanations as for a bright eight-year-old. (I’m much older than that, but disability means that I have to break things into VERY small steps in case I run into a physical issue using the key commands, especially.)

If you just drag your text file (e.g. with the extension .txt) onto your wiki, It should let you drop it and then let you “Import” the resulting file.

If you do that, it should get type text/plain and display with line breaks included.

If instead you copy the text from the text file and paste it into a new tiddler, it will get the behavior you describe. But you can easily fix it by changing the type field, which sits right below the main text field and choose Plain text (text/plain) from its dropdown.

Close, but it’s actually “Cascading Style Sheets”.

And no, the problem is not CSS, or not directly. TW understands a number of different types of input. By default, it expects wikitext, where single linebreaks have little meaning, and double line-breaks are used to separate block elements. But it also accepts text format, CSS, JavaScript, PDFs, a number of image formats, and others. If you’re not using the default wikitext, you need to tell it what you have.

1 Like

im returning intermediate( i think ) user

i could not find the appropriate documentation
( perhaps it is actually missing! from documentation
…i only quickly scanned )

but im guessing the problem hear is that ‘wiki text
requires double spacing !

eg this wiki text

hello
help

hello

help

will render as

hello help

hello

help 

with the default tiddler type

type: text/vnd.tiddlywiki

which afaik it what renders tiddly wikis ‘wiki text’ format

I’ve never been able to drag and drop (disability in hands). So, say I’m reading a recipe on a webpage (it’s my own work, NOT random nonsense). I control-c copy, then try to control-v paste into a new tiddler.

It eats all the line breaks. ALL of them.

I need to be able to use this process. Is there any hope? Going through to insert the extra breaks can take as long as typing the document the first time. LITERALLY.

I have to do this as simply and easily as possible.

The goal is to make a backup of text documents currently in google docs, so that it’s got both a backup and a format that I can use to turn it into a working wiki.

1 Like

I don’t understand any of these steps. I’d need specific instructions, and it may not work due to the disability issues.

in the new tiddler

do this

to view the input as plain text
which should keep the line brakes
when rendered/displayed

There’s also an Import button on the Sidebar Tools menu which would let you load the file without drag-and-drop.

But as mentioned, you can also set the type after importing, in the field right below the main text field:

Just set it to Plain text (text/plain)

Hi!

Another solution is to paste your text inside a Hard Linebreaks Paragraph like this:

Here is //normal// wikitext

Start of the Hard Linebreaks Paragraph:

"""
Your
Pasted
Text
Goes
Here
"""

Hope this helps,

Fred

And as if we need another way, we can set the field code-body=yes on a tiddler to treat is as code and display the text without attempting to render it.

@DisabledDisaster once you have your imported text visible you will want a method to;

Depending on the tools you find easy to use, you can then select a piece, copy to clipboard and even if there is no “paste” in the menu using Crtl-V will past that content into the wiki as an “untitled” tiddler.

Spacial note

If you were not aware, our TiddlyWiki community includes a range of members with different abilities from knowledge and expierence, to physical, sensory and cognative divercity. We do like to support anyone, and help TiddlyWiki accomodate everyone here :nerd_face:

3 Likes

It took a deep breath and an act of “stepping off a proverbial cliff blind” to admit to the disabilities in the first time I asked for help here. (My whole life has been framed by others’ reactions to my disabilities, and sometimes it shows up as my overcautious tension.)

The response has been WONDERFUL. Absolutely. Even when it’s something that I haven’t yet learned and am not sure how to DO, it’s not phrased as “well, everybody knows,” and the tone is friendly.

The program itself has been INCREDIBLY useful even when I am basically only able to use Tiddlyhost, rather than put it on my desktop (that’s a later goal), and am learning to crosslink between tiddlers that connect to the same idea.

I’m still at beginner level, even though I’ve used the program for what, ten years, and I am determined to keep learning, because even with the limited elements that I can use, it has revolutionized my note taking.

That there is so much more to learn and to DO, so many ways to make the individual tiddlers more useful, more interactive, more focused and specific… It’s amazing.

So are all of the members I’ve interacted with.

I’ll keep learning, but I wanted to take the time to say thank you to everyone who’s helped so far. The information is already incredibly useful.

8 Likes

I am happy to hear you have had a good experience here :partying_face:

Adding a blank line after each line resolves this issue.

Alternatively, switching from TiddlyWiki to https://moka.pub/ solves the problem. Moka does not require blank line formatting.

The third method is to copy the content into Moka, then copy the rendered webpage from Moka and paste it into https://obsidian.md/ to obtain the Markdown format. You can also use Word to convert to web pages.