It would be nice to create more "conventional" HTML for text sections. Perhaps there could be an admin-selectable (or even user-selectable) choice between methods. I can think of three methods:
1. (current) Every CR typed by the person editing text
is converted to a BR tag on output. (Or is it on
input to the DB?)
2. Every string of two or more CRs is converted to
</p>\n<p>
All leading and trailing whitespace is stripped and
a P is put in front and a /P at the end. Might
need a class attribute in each P tag.
3. No conversion is done--entering HTML tags is the
writer's responsibility. Could offer a Wiki or
BBcode type of form to make this easier.
From my experience running a blog for someone with limited computer skills and NO software skills, I'd vote for option two plus a simplified Wiki form for
HTML options other than P and BR. I am working on a new welcome page/portal block in which I intend to try out this idea. I have already tried out the raw option three on http://UniGen/PGV/ by commenting out some of the calls to nl2br() I like the results, but
text entry is slightly inconvenient for me and
impossible for someone not skilled at HTML.
Logged In: YES
user_id=1537714
Originator: YES
ALTERNATIVE PROPOSAL
Treat input in textarea controls exactly as now unless special markup is used.
Alllow the site admin the option to enable this (default is this markup is treated
the same as any other text.
If enabled, add extra save buttons: "Save HTML" and "Save paragraphs"
Save paragraphs: Textareas (not single line boxes) are saved as #PARA(text)#
Save HTML: Textareas (not single line boxes) are saved as #HTML(text)#
On output: text without these wrappers is treated as in 4.1.1
Text within these wrappers is treated as follows:
PARA: single linebreaks untouched; two or more line breaks are the delimiter to
split the text into paragraphs which are wrapped in the appropriate tags.
HTML: text in the wrapper is output unchanged.
Logged In: YES
user_id=1537714
Originator: YES
In "View raw GEDCOM" these wrappers would be visible so that the user would know why formatting is not "raw"
Logged In: YES
user_id=1537714
Originator: YES
I have dropped the notion of the new block I was working on.