ID:144692
 
Code:
Form/Example
form_reusable = 0
form_window = "window=blah;size=300x450"

HtmlLayout()
return \
{"
Ops:<br>
<I need white space here>
[d1_1] on [d1_2] off - Op 1<br>
<I need white space here>
[d9_1] on [d9_2] off - Op 2<br>
<br>
[submit]
"}


Problem description:
I'm experimenting with the htmllib. I couldn't find any other topics addressing this issue. I basically need to tab over 4 spaces where I typed ''. Using a tab or spacebar 4 times doesn't do anything. What are my options? Thanks.
You can always use the &nbsp; entity. Or, you can set a style up that has an indentation.

Lummox JR
I think this will help you out with some examples.
I like to use something like this:
{"<span style="width: 30px">"}

In response to DarkCampainger
Something even better is to do something like this:

<code><div style="text-indent: 2em;">Indented Text</div></code>

~~> Unknown Person
Consider not using hub://Dantom.htmllib and creating your own HTML forms from scratch. This will allow you to have more control over your forms.
Has nothing to do with htmllib, HTML doesn't parse whitespace, you need to use &nbsp; (non-breaking space).
In response to Android Data
Android Data wrote:
Consider not using hub://Dantom.htmllib and creating your own HTML forms from scratch. This will allow you to have more control over your forms.

I'm getting the impression that there's no "right way" to create an html form since you can get the same result using numerous methods. I ended up using the examples Zythyr linked me to in order to come up with a table, which is probably my best option right now.

Like I said, this is my first experience with html, so I'm not quite ready to go reinvent the wheel just yet (even though that seems to be my hobby lately).