Fix typos in the evform docstring. Resolves #1185.

This commit is contained in:
Griatch 2017-02-01 23:23:06 +01:00
parent 7e4155d4cd
commit 09245589f5

View file

@ -61,10 +61,10 @@ character's width.
Use as follows:
```python
import evform
from evennia import EvForm, EvTable
# create a new form from the template
form = evform.EvForm("path/to/testform.py")
form = EvForm("path/to/testform.py")
(MudForm can also take a dictionary holding
the required keys FORMCHAR, TABLECHAR and FORM)
@ -80,16 +80,16 @@ Use as follows:
8: 10,
9: 3})
# create the EvTables
tableA = evform.EvTable("HP","MV","MP",
tableA = EvTable("HP","MV","MP",
table=[["**"], ["*****"], ["***"]],
border="incols")
tableB = evform.EvTable("Skill", "Value", "Exp",
tableB = EvTable("Skill", "Value", "Exp",
table=[["Shooting", "Herbalism", "Smithing"],
[12,14,9],["550/1200", "990/1400", "205/900"]],
border="incols")
# add the tables to the proper ids in the form
form.map(tables={"A": tableA,
"B": tableB}
"B": tableB})
# unicode is required since the example contains non-ascii characters
print unicode(form)