Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazzpirate committed Jun 20, 2023
1 parent 1ccd931 commit e14f42d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mmt-stex/src/info/kwarc/mmt/stex/xhtml/SHTMLNode.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,13 @@ case class SHTMLExample(orig:HTMLNode) extends HTMLStatement("example",orig) {
constantpath.foreach(p => contentelem = Some(p))
}


override lazy val constantpath = sstate.flatMap { state =>
findAncestor { case hl: ModuleLike if hl.language_theory.isDefined => hl.language_theory.get }.map { lt =>
lt.path ? newname(lt, if (id == "") LocalName("example") else LocalName.parse(id))
}
}

override def onAdd: Unit = {
super.onAdd
//sstate.foreach(_.addExample(fors, id, this.plain.node.head))
Expand Down

0 comments on commit e14f42d

Please sign in to comment.