Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 05:29 am EST

Geeklog Forums

double dash in story body causes unusual output


Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
I was trying to post a story that includes a linux command-line with double-dash option.

For example:

/usr/bin/somecommand --option

It seems that the double dash is messing up the story display even if story format is Plain Text.

To re-produce, make a new story with this as the Intro Text:

Text Formatted Code

Some text line 1.

Some text line 2.

Some text will follow with a double-dashed option.

/usr/bin/somecommand --doubledash

Some text last line.
 


What I see is "Some text last line" is displayed at the top of the story text!

Similar things happen if I change the story format to wiki-style or HTML and try to embed a double-dash in code tags... the double dash is messing something up.



Is it possible to show double-dashes in story Intro/Body? How?

Even better if you can show how to make the double-dashed part show up in monotype font.

Thanks!
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
I see that some people have viewed this but no replies.

It would be great if someone else could try to reproduce this "double-dash bug" and make sure it is not just something specific to my server.

Just make a new story and include the text I posted above.

Thanks very much!
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello Dan,

Seems to work fine on demo.geeklog.net

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
Thanks, good idea to try the demo site!

The demo site is running 1.6.0.

I am running 1.6.0sr2.

Could someone test this with the latest GL (or maybe the demo site will be updated soon)?

Thanks very much!
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Dan,

It is working for me on a geeklog 1.6.0sr2

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
I also have no problems with that. What other settings do you have? Bad word filtering, SpamX ?
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
I think I have a theme issue.

I switched back to professional and my double-dash story looks just fine.

Thanks for the feedback and the testing everyone!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sounds more like a font issue.

Btw, as per your first post: For monospaced text, try the <tt>, <code>, or <kbd> HTML tags, depending on context.

bye, Dirk
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
Here's the story with the broken output (I have not had a chance to look at my theme yet):

http://thatlinuxbox.com/blog/article.php/20091020135847311

My theme includes modifications to the story body, so there is a very good chance my customizations are the cause.

Quote by: Dirk

Sounds more like a font issue.

Btw, as per your first post: For monospaced text, try the <tt>, <code>, or <kbd> HTML tags, depending on context.

bye, Dirk



Thanks, I'll try...
 Quote

Status: offline

Dan Stoner

Forum User
Chatty
Registered: 01/28/09
Posts: 43
Location:Gainesville, FL
Fixed. Problem caused by me commenting out some stuff in storytext.thtml. When I deleted the lines instead of just commenting them out, all is well.
 Quote

All times are EST. The time is now 05:29 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