Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 06:40 pm EST

Geeklog Forums

Possibly silly question -- non breaking spaces in stories


Status: offline

roc97007

Forum User
Junior
Registered: 12/25/05
Posts: 32
artistic
I'm putting together a website for a friend to exhibit her poetry. Since poetry depends somewhat on presentation, I'm kept busy trying to make the spacing come out right while staying within the Geeklog publishing rules.

I find that I'm really missing the non-breaking space. I've tried adding   to the code in html mode, but geeklog simply swallows it.

So I've added various incarnations of nbsp, &nbsp,   to the admin_html array, but it doesn't seem to be recognized. Thought I'd ask first before digging further into the code.

Thanks, as they say, in advance.


Ron
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
This takes place in the kses.class.php file under system/classes. I'm no expert in that class, but I think if you add
$string = str_replace(' ', ' ', $string);
to the end of the
function _normalize_entities($string)
It won't eat the non-breaking spaces. But I haven't tried this.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
  works for me in stories (with html mode). I am using Geeklog 1.4.1 with the advance editor turned off.
One of the Geeklog Core Developers.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog is notoriously bad with keeping HTML entities and some special characters (e.g. backslashes) intact. But things are getting better and, as Laugh pointed out, Geeklog 1.4.1 should keep HTML entities intact.

bye, Dirk
 Quote

All times are EST. The time is now 06:40 pm.

  • 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