Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 01:26 am EDT
Geeklog Forums
still double spacing in body text
Status: offline
tubbs
Forum User
Newbie
Registered: 03/09/02
Posts: 13
Hi, I really need to fix this. When users on my site submits articles, they submit it in plain text and it looks ok when i first check it. But, then there's this problem; the users have only one form-area to submit in, which becomes the "intro text". I then have to move the main part of the article to "body text". The intro text part is nicely formatted with single spacing, but the body text part looks freakish with double spacing. When looking at the printer friendly version it looks ok though... Could anyone please give me a hint about what to do?
(a suggestion for other releases of geeklog is to let the user have two submit field too, one for intro text and one for body text...)
If you dont understand what i mean, just check www.freebsd.se and see for your self.
TIA
tubbs
13
19
Quote
Status: offline
tcarr
Forum User
Newbie
Registered: 12/17/01
Posts: 7
News sites never carry the whole article as a solid chunk of text. There is always an opening statement or a kicker to draw readers into the article. Two text input boxes would allow the writer of an article to indicate their intended split between into and main text. It would also ease the work of the editor.
I would suggest a short term solution in a situation where the community members operate as peers. That is to assign everyone story admin rights so they can use the story admin block to enter their stories.
tcarr
13
14
Quote
Anonymous
Anonymous
Sure, I agree, I could do that, but it still doesnt solve the crazy formatting
, Im sure its something simple...
![Frown Frown](https://www.geeklog.net/forum/image_set/pixel.gif)
15
14
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
This was an old bug and has been fixed in newer versions of geeklog. I'd upgrade if I were you.
-----
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
8
12
Quote
Anonymous
Anonymous
yup, but that would make do nothing but converting txt to html all day long... i actually have better things to do
, but yes its a solution hehe.
![Smile Smile](https://www.geeklog.net/forum/image_set/pixel.gif)
9
14
Quote
Status: offline
tubbs
Forum User
Newbie
Registered: 03/09/02
Posts: 13
Now it works perfectly since i removed that extra nl2br() call, thanks a bunch Tony! what a relief
thanks thanks thanks!
(for those of you who have the same problem: about line 183 in public_html/lib-common.php theres an unnecessary use of nl2br, it looks like this:
$article->set_var('story_introtext', stripslashes($A['introtext']) . '<br><br>'.nl2br(stripslashes($A['bodytext'])));
but should look like this:
$article->set_var('story_introtext', stripslashes($A['introtext']) . '<br><br>'.stripslashes($A['bodytext']));
I kinda had a feeling it was just a small thing like this
![Smile Smile](https://www.geeklog.net/forum/image_set/pixel.gif)
![Smile Smile](https://www.geeklog.net/forum/image_set/pixel.gif)
14
12
Quote
All times are EDT. The time is now 01:26 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content