Ticket #1613 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

DCMparagraph id attribute should be optional

Reported by: kohlhase Owned by: deyan
Priority: high Milestone: GenCS2011
Component: STeX/ltxml Version: trunk
Severity: critical Keywords:
Cc: ako Blocked By:
Blocking: Due to close: YYYY/MM/DD
Include in GanttChart: no Dependencies:
Due to assign: YYYY/MM/DD

Description

We get an error when we do not specify an id key on \DCMparagraph (and I suspect on \DCM*section as well, the code looks similar).

Fatal:perl:die Can't call method "getValue" on an undefined value at /Users/kohlhase/stc/stex/sty/dcm/dcm.sty.ltxml line 131.
In Constructor[\DCMparagraph OptionalKey... defined /Users/kohlhase/stc/stex/sty/dcm/dcm.sty.ltxml line 136
 <= Whatsit[\DCMparagraph,undef,List[Box[... <= List[Box[␍],Comment[%\maketitle{}],Co... <= Constructor[\begin{document} Optional... <= ...
lastenheft.tex#textrange(from=826;0,to=826;118) at /opt/local/lib/perl5/site_perl/5.8.9/LaTeXML/Global.pm line 207.

But the id key should be optional, which means we should generate an xml:id if we do not find an id key.

BTW, it seems to me that the \DCM*section can be refactored.

Change History

Changed 3 years ago by kohlhase

Ran into this error again, that one probably also exists on the other DCM sectioning commands.

Changed 3 years ago by kohlhase

  • priority changed from normal to high
  • severity changed from major to critical

Changed 2 years ago by deyan

  • status changed from new to closed
  • resolution set to fixed

This was a dumb bootstrapping issue that I had looked over before, sorry.

Should be fixed now.

Note: See TracTickets for help on using tickets.