In markmin there are no line breaks. Just paragraphs. You have to set
the distance between paragraphs in CSS.

form=SQLFORM(...)
form.element('textarea')['_rows'] = random.randint(10,20)



On May 16, 3:13 pm, Jay Shaffstall <[email protected]> wrote:
> I've searched, but not found any information that helps me at my
> current level of web2py experience.
>
> Question 1: how do you insert a single line break (e.g. <br/>) in
> markmin?  I've seen two spaces at the end of lines, but that doesn't
> seem to work for me.  I've seen that you can use <br> as a separator
> instead of <p>, but that isn't what I want.  I just want to put a
> single line break in specific spots in the content.
>
> Question 2: How can I alter the attributes of form elements using
> SLQFORM?  Specifically, I want to change the number of rows and
> columns in a textarea, but I could see wanting to alter attributes of
> any form element.  The answer is probably to create a custom widget
> for the field in the model, but I haven't been able to come up with
> anything that has any effect.

Reply via email to