[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[PATCH 5.005_63] Pod::Html ordered list problem



The problem is that text like "=item 1." is found to be numbered as "1"
with text "." that should be bold, as a header, something like
"<LI><STRONG>.</STRONG>".  This patch fixes that problem.

*** Html.pm.orig	Tue Jan 25 11:08:42 2000
--- Html.pm	Tue Jan 25 11:08:53 2000
***************
*** 1008,1014 ****
  	}

  	print HTML '<LI>';
! 	if ($text =~ /\A\d+\.?\s*(.+)\Z/s) {
  	    print HTML '<STRONG>';
  	    if ($items_named{$1}++) {
  		print HTML html_escape($1);
--- 1008,1014 ----
  	}

  	print HTML '<LI>';
!         if ($text !~ /\A\d+\.?\Z/s && $text =~ /\A\d+\.?\s*(.+)\Z/s) {
  	    print HTML '<STRONG>';
  	    if ($items_named{$1}++) {
  		print HTML html_escape($1);

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]