Branch: Tag:

2001-10-03

2001-10-03 18:32:54 by Martin Nilsson <mani@lysator.liu.se>

Reduce the risk of empty p elements.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.42

561:    }    if (sizeof(tagstack))    parseError("@" + tagstack[0] + "{ without matching @}"); -  return "<p>" + String.trim_whites(res) + "</p>\n"; +  res = String.trim_all_whites(res); +  if(!sizeof(res)) return "\n"; +  return "<p>" + res + "</p>\n";    }       // Read until the next delimiter token on the same level, or to