Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Hidden Text Paragraph Formatting

11 years ago

Hey guys. I did a brief search but didn't find a clear answer to this question. Is there anyway to put a line break in on-page hidden variables. So, let's say that I want to do the following:

%%VARIABLE1%=%0%The sun peaks over the mountain and immediately, Johnso sits up.

"Did anyone else hear that?" he asks, quietly.

"Hear what, Johnso?" Frederanko responds in turn.%%

As is, the editor won't recognize that the ending %%s correspond to the first %%s because there are line breaks in between.

Hidden Text Paragraph Formatting

11 years ago

Unfortunately not from what I've been able to see. You could do it using the $PAGETEXT, but not on-page.

Hidden Text Paragraph Formatting

11 years ago

Thanks, Killa, I thought so.

Hidden Text Paragraph Formatting

11 years ago

Yeah, that's a limitation of on-page variables unfortunately.

I generally still use them for paragraph breaks, but doing so requires having two separate parts to each paragraph, so you don't have blank paragraphs, depending on your variables.

I do it this way, because the Line Breaks in $PAGETEXT used to not match the spacing with the rest of the story viewer. That may be fixed now however, but I don't know for sure.

Hidden Text Paragraph Formatting

11 years ago

Spacing is driving me insane. Hopefully Alex puts that one on my priority.

Hidden Text Paragraph Formatting

11 years ago

It's really odd. He's tried to fix it for a while now, but hasn't been able to. Last I talked to him he seemed to have it figured out, but I guess he hasn't gotten around to implementing it yet.
 

Hidden Text Paragraph Formatting

11 years ago
Tried nbsp? if you want to take the time, you can also put invisible letters in between lines so that the paragraph is continuous, but it looks like it's been broken into several lines. Like putting a spam of nbsp entities to make it look like line breaks, and that eliminates people highlighting invisible text that looks ugly; it'll just be spaces :D I don't know if it'd work but if all else fails, trying doesn't hurt :P

Hidden Text Paragraph Formatting

11 years ago

I don't think that will work in %%xxx%% hidden text.

Hidden Text Paragraph Formatting

11 years ago
Well technically it's listed as a special character and has an entity (and ISO code), and not an html tag. So if other special characters like sect work, then nbsp should too; in theory anyways. I might just be confused about special character properties...

Hidden Text Paragraph Formatting

11 years ago

It does work - BUT... that's a space, not a line break, so not helping haha!

But I did find This!™

Hidden Text Paragraph Formatting

11 years ago
Does this not work like you want it to?

Hidden Text Paragraph Formatting

11 years ago

You can't use HTML inside of it for some reason.

Hidden Text Paragraph Formatting

11 years ago
Ummm... I can.

Hidden Text Paragraph Formatting

11 years ago

Well, that's interesting.

Guess you can do it JJJ, haha.

Hidden Text Paragraph Formatting

11 years ago

Yeah, that works great!, Thanks Z!

And we should have known; as we were already using HTML inside them with pictures haha!

Hidden Text Paragraph Formatting

11 years ago

Weird, I tried exactly that and didn't have any success. Are you on the rich text editor or not?

Hidden Text Paragraph Formatting

11 years ago
no. I don't use the rich text editor.

Hidden Text Paragraph Formatting

11 years ago

Don't forget that there is currently a bug that erases any html when you don't save from Source - or when you open a page with HTML already on it.

Hidden Text Paragraph Formatting

11 years ago

Well, that explains it then.

Hidden Text Paragraph Formatting

11 years ago

I think that's the difference maker! Thanks Z.