Browse Source

Modify HTML

master
Noëlle 4 years ago
parent
commit
6a4fd4cfb2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      koboldgen.py

+ 2
- 2
koboldgen.py View File



def print_name(self, html=False): def print_name(self, html=False):
if html: if html:
charText = f"<br>\n<h4>Name: {self.name} (Kobold {self.career})</h4>"
charText = f"<h4>Name: {self.name} (Kobold {self.career})</h4>"
else: else:
charText = f"\nName: {self.name} (Kobold {self.career})" charText = f"\nName: {self.name} (Kobold {self.career})"
print(charText) print(charText)
print(f"<p style='padding-left: 10px;'>{lines[6]}: {lines[7]}</p>") print(f"<p style='padding-left: 10px;'>{lines[6]}: {lines[7]}</p>")
if self.params.thirdProblem: if self.params.thirdProblem:
print(f"<p style='padding-left: 20px;'>{lines[8]}: {lines[9]}</p>") print(f"<p style='padding-left: 20px;'>{lines[8]}: {lines[9]}</p>")
print("</p>\n<br>")
print("</p>")
else: else:
print(f"{lines[0]} {lines[1]} {lines[2]} -- {lines[3]}") print(f"{lines[0]} {lines[1]} {lines[2]} -- {lines[3]}")
print(f"{lines[4]}: {lines[5]}") print(f"{lines[4]}: {lines[5]}")

Loading…
Cancel
Save