Improved character data
This commit is contained in:
parent
b2c188d337
commit
aadd4187a0
@ -50,7 +50,7 @@ func main() {
|
||||
|
||||
colonPos := strings.Index(line, ":")
|
||||
|
||||
if colonPos == -1 || colonPos > 25 {
|
||||
if colonPos == -1 || colonPos < 2 || colonPos > 25 {
|
||||
finalLines = append(finalLines, originalLine)
|
||||
continue
|
||||
}
|
||||
@ -60,6 +60,10 @@ func main() {
|
||||
|
||||
value = strings.TrimSpace(value)
|
||||
|
||||
if key == "source" {
|
||||
key = "Source"
|
||||
}
|
||||
|
||||
character.Attributes = append(character.Attributes, &arn.CharacterAttribute{
|
||||
Name: key,
|
||||
Value: value,
|
||||
|
@ -16,5 +16,9 @@ component CharacterDetails(character *arn.Character)
|
||||
each attribute in character.Attributes
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.character-attributes-name= attribute.Name + ":"
|
||||
|
||||
if strings.Contains(attribute.Value, "<")
|
||||
td.character-attributes-value!= markdown.Render(attribute.Value)
|
||||
else
|
||||
td.character-attributes-value= attribute.Value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user