Non-threaded

Forums » Newbie Central » Read Thread

Introduce yourself and get to know the community.

Please help with a text spacing problem.

10 years ago

I started working on a coya years ago, got sick and stopped. Now I'm back and things have changed in my text editor. My images disappear when I edit a page (annoying but I can live with that), and the spacing between the lines of text after a line break has changed to the double or more. It looks OK in the editor, but not on the game page. On pages with dialog I have more empty space than text when I text read the game.

What am I doing wrong here?

I'm using the rich text editor and advanced editor and I've tried using both Chrome and Fire Fox.

Please help with a text spacing problem.

10 years ago

Hint: for the text, try writing it in Microsoft Word or something, then copy and paste it back in. The pictures are because the links might no longer work (I think) since it could be deleted but I'm not sure. 

I've noticed that, when reading in the editor, the spacing is slightly different to that inside the actual game. I suggest using double-spacing to gap paragraphs. 

Please help with a text spacing problem.

10 years ago

Thank you, but ... it did not work. The gap in the text after a line break is still double. =/

I've also gone into "source" and deleted all code there to get rid of strange "extras" and that did not solve the problem either.

The links to the pictures work. I've also tired images I've uploaded to this site (today), they disappear too.

At this point it's a bad idea to use a double-space gap after a paragraph. The space will then be three to four centimeters.

 

 

Please help with a text spacing problem.

10 years ago

It may be a tad complex, but this has always worked for me. Try putting this in the global page script:

$PAGETEXT := "<style>p{margin-bottom:1em;} br{content:' ';line-height:0;}</style>" + $PAGETEXT

Please help with a text spacing problem.

10 years ago

That works like a charm! Thank you so much. =)

Please help with a text spacing problem.

10 years ago

Glad you found a work-around. These are all bugs that have cropped up after the latest site upgrade last year.

For the double space issue, just stop using an extra return between paragraphs.

For the Pics, it's not just pics, it's any html formatting - and it will effect any page you open to edit. One thing you can do is turn off your RTI (though you'll have to put all the <p></p> in by hand - but at least then you can edit pages without losing your pics & such.

Please help with a text spacing problem.

10 years ago

Thank you for the advice. The edits I'm making to the old pages are minor and turning the RTI off is an easy fix for now.