mirror of https://github.com/tLDP/LDP
move id tag from qandaentry to question so xref renders right
This commit is contained in:
parent
437a8fc3bd
commit
84a35b4e78
|
@ -173,13 +173,13 @@ sub proc_txt {
|
|||
$line =~ s/^Q://;
|
||||
&trimline;
|
||||
&splittitle;
|
||||
$line = "<question><para>" . $title . "</para></question>\n";
|
||||
if ($id eq '') {
|
||||
$line = "<question><para>" . $title . "</para></question>\n";
|
||||
} else {
|
||||
$line = "<question id='$id'><para>" . $title . "</para></question>\n";
|
||||
}
|
||||
unless ($qandaentry == 1) {
|
||||
if ($id eq '') {
|
||||
$line = "<qandaentry>\n" . $line;
|
||||
} else {
|
||||
$line = "<qandaentry id='$id'>\n" . $line;
|
||||
}
|
||||
$line = "<qandaentry>\n" . $line;
|
||||
$qandaentry = 1;
|
||||
}
|
||||
if ($qandaset == 0) {
|
||||
|
|
Loading…
Reference in New Issue