Page MenuHomePhabricator

Bullets not supported as first item in textarea fields
Closed, InvalidPublic

Description

Author: carole.st.laurent

Description:
Semantic Forms (or the responsible extension for fields) adds a space as the first character of a textarea field. Therefore when I try to start a bullet list in the field, the first bullet is not being interpreted properly. E.g., my markup ends up like this:

<nowiki>
<td> *I can't prevent the initial space so the first bullet does not work <ul><li>the second one is fine</li></ul> </td>
</nowiki>

To avoid breaking lists, the initial space should only be added if the textarea is empty.


Version: unspecified
Severity: normal

Details

Reference
bz24393

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:09 PM
bzimport set Reference to bz24393.

After a private discussion, this turned out not to be a bug at all.

carole.st.laurent wrote:

The error was in the form. The textarea field must start in column 1 of a new line, e.g.:

'''My label:'''
{{{field|Summary|input type=textarea|cols=60}}}

I doubt that - it's the newline in the template, not the form, that should affect things.

carole.st.laurent wrote:

Correct, my mistake. Template code should be formated as follows:
! Mylabel

{{{Myfield|}}}