I have discovered the preview function adds two horizontal lines:

return BOLTescape(BOLTtemplatemarkup("----\n$preview\n----",
$pageLink));

I didn't realized before because <hr> was hidden by my CSS. I suggest
to remove them and use <div> instead:

return BOLTescape(BOLTtemplatemarkup("<div id='boltwirepreview'>\n
$preview\n</div>", $pageLink));

This way there is no hardcoded XHTML in the core and the user can
control the look of the preview. In fact a default style should be
added to the default style page, something like the following:

div#boltwirepreview {
   border: 2px dotted orange;
   padding:.5em;
   margin: 1em 0 ;
}

By the way, I also suggest, for future versions, to rename all
BoltWire's CSS id's and classes (box, code, stripe, rss, marks,
hotlinks, message, diff...) with a common prefix, "boltwire" or "bw"
or "bolt". I had no problem yet, but that change would avoid possible
coincidences, when creating designs, especially when adapting existing
ones. That would save work.

Cheers,
Marcos

--
http://alinome.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to