mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 17:25:32 +00:00
sidenote ende
This commit is contained in:
@@ -90,16 +90,16 @@ func Parse(lib *xmlmodels.Library) func(s string) string {
|
||||
elem.Token.Attributes["pos"] != "" {
|
||||
note := Note{Id: id}
|
||||
note.Tokens.AppendDivElement(id, "note-sidenote-meta")
|
||||
if elem.Token.Attributes["annotation"] != "" {
|
||||
note.Tokens.AppendDivElement("", "sidenote-note")
|
||||
note.Tokens.AppendText(elem.Token.Attributes["annotation"])
|
||||
note.Tokens.AppendEndElement()
|
||||
}
|
||||
if elem.Token.Attributes["page"] != "" {
|
||||
note.Tokens.AppendDivElement("", "sidenote-page")
|
||||
note.Tokens.AppendText(elem.Token.Attributes["page"])
|
||||
note.Tokens.AppendEndElement()
|
||||
}
|
||||
if elem.Token.Attributes["annotation"] != "" {
|
||||
note.Tokens.AppendDivElement("", "sidenote-note")
|
||||
note.Tokens.AppendText(elem.Token.Attributes["annotation"])
|
||||
note.Tokens.AppendEndElement()
|
||||
}
|
||||
if elem.Token.Attributes["pos"] != "" {
|
||||
note.Tokens.AppendDivElement("", "sidenote-pos")
|
||||
note.Tokens.AppendText(elem.Token.Attributes["pos"])
|
||||
@@ -161,8 +161,10 @@ func Parse(lib *xmlmodels.Library) func(s string) string {
|
||||
if !ps.LineBreak {
|
||||
ps.Tokens.AppendLink("#"+ps.PC, "eanchor-page")
|
||||
ps.Tokens.AppendEndElement()
|
||||
ps.Tokens.AppendDivElement(ps.PC, "page", "page-inside")
|
||||
} else {
|
||||
ps.Tokens.AppendDivElement(ps.PC, "page", "page-outside")
|
||||
}
|
||||
ps.Tokens.AppendDivElement(ps.PC, "page")
|
||||
ps.Tokens.AppendText(ps.PC)
|
||||
ps.Tokens.AppendEndElement()
|
||||
strings.TrimLeft(elem.Token.Data, " \t\n\r")
|
||||
|
||||
Reference in New Issue
Block a user