Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 62258 invoked from network); 17 Nov 2009 09:41:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 09:41:15 -0000 Received: (qmail 95415 invoked by uid 500); 17 Nov 2009 09:41:15 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 95327 invoked by uid 500); 17 Nov 2009 09:41:15 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 95318 invoked by uid 99); 17 Nov 2009 09:41:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 09:41:14 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 09:41:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5999C23888CE; Tue, 17 Nov 2009 09:40:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r881213 - in /lucene/java/trunk: CHANGES.txt src/site/changes/ChangesFancyStyle.css src/site/changes/ChangesFixedWidthStyle.css src/site/changes/ChangesSimpleStyle.css src/site/changes/changes2html.pl Date: Tue, 17 Nov 2009 09:40:52 -0000 To: java-commits@lucene.apache.org From: uschindler@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091117094052.5999C23888CE@eris.apache.org> Author: uschindler Date: Tue Nov 17 09:40:51 2009 New Revision: 881213 URL: http://svn.apache.org/viewvc?rev=881213&view=rev Log: LUCENE-2077: changes-to-html: better handling of bulleted lists in CHANGES.txt Modified: lucene/java/trunk/CHANGES.txt lucene/java/trunk/src/site/changes/ChangesFancyStyle.css lucene/java/trunk/src/site/changes/ChangesFixedWidthStyle.css lucene/java/trunk/src/site/changes/ChangesSimpleStyle.css lucene/java/trunk/src/site/changes/changes2html.pl Modified: lucene/java/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=881213&r1=881212&r2=881213&view=diff ============================================================================== --- lucene/java/trunk/CHANGES.txt (original) +++ lucene/java/trunk/CHANGES.txt Tue Nov 17 09:40:51 2009 @@ -76,7 +76,7 @@ (Uwe Schindler, Robert Muir, Karl Wettin, Paul Elschot, Kay Kay, Shai Erera) * Generify Lucene API: - + - TokenStream/AttributeSource: Now addAttribute()/getAttribute() return an instance of the requested attribute interface and no cast needed anymore. - NumericRangeQuery, NumericRangeFilter, and FieldCacheRangeFilter @@ -91,14 +91,13 @@ - MapOfSets - o.a.l.util.cache package - lot's of internal APIs of IndexWriter - (Uwe Schindler, Michael Busch, Kay Kay, Robert Muir, Adriano Crestani) * LUCENE-1944, LUCENE-1856, LUCENE-1957, LUCENE-1960, LUCENE-1961, LUCENE-1968, LUCENE-1970, LUCENE-1946, LUCENE-1971, LUCENE-1975, LUCENE-1972, LUCENE-1978, LUCENE-944, LUCENE-1979, LUCENE-1973, LUCENE-2011: Remove deprecated methods/constructors/classes: - + - All String/File directory paths in IndexReader / IndexSearcher / IndexWriter. - Remove FSDirectory.getDirectory() @@ -123,7 +122,6 @@ - Remove BoostingTermQuery. - Remove MultiValueSource. - Remove Scorer.explain(int). - ...and some other minor ones (Uwe Schindler, Michael Busch, Mark Miller) * LUCENE-1925: Make IndexSearcher's subReaders and docStarts members Modified: lucene/java/trunk/src/site/changes/ChangesFancyStyle.css URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/site/changes/ChangesFancyStyle.css?rev=881213&r1=881212&r2=881213&view=diff ============================================================================== --- lucene/java/trunk/src/site/changes/ChangesFancyStyle.css (original) +++ lucene/java/trunk/src/site/changes/ChangesFancyStyle.css Tue Nov 17 09:40:51 2009 @@ -24,6 +24,11 @@ color: purple; } +li.bulleted-list { + margin-top: 0.25em; + margin-bottom: 0.25em; +} + li { margin-top: 1em; margin-bottom: 1em; Modified: lucene/java/trunk/src/site/changes/ChangesFixedWidthStyle.css URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/site/changes/ChangesFixedWidthStyle.css?rev=881213&r1=881212&r2=881213&view=diff ============================================================================== --- lucene/java/trunk/src/site/changes/ChangesFixedWidthStyle.css (original) +++ lucene/java/trunk/src/site/changes/ChangesFixedWidthStyle.css Tue Nov 17 09:40:51 2009 @@ -26,6 +26,11 @@ color: purple; } +li.bulleted-list { + margin-top: 0.25em; + margin-bottom: 0.25em; +} + li { margin-top: 1em; margin-bottom: 1em; Modified: lucene/java/trunk/src/site/changes/ChangesSimpleStyle.css URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/site/changes/ChangesSimpleStyle.css?rev=881213&r1=881212&r2=881213&view=diff ============================================================================== --- lucene/java/trunk/src/site/changes/ChangesSimpleStyle.css (original) +++ lucene/java/trunk/src/site/changes/ChangesSimpleStyle.css Tue Nov 17 09:40:51 2009 @@ -1,3 +1,8 @@ +li.bulleted-list { + margin-top: 0.25em; + margin-bottom: 0.25em; +} + li { margin-top: 1em; margin-bottom: 1em; Modified: lucene/java/trunk/src/site/changes/changes2html.pl URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/site/changes/changes2html.pl?rev=881213&r1=881212&r2=881213&view=diff ============================================================================== --- lucene/java/trunk/src/site/changes/changes2html.pl (original) +++ lucene/java/trunk/src/site/changes/changes2html.pl Tue Nov 17 09:40:51 2009 @@ -219,8 +219,12 @@ function collapseAll() { var unorderedLists = document.getElementsByTagName("ul"); - for (var i = 0; i < unorderedLists.length; i++) - unorderedLists[i].style.display = "none"; + for (var i = 0; i < unorderedLists.length; i++) { + if (unorderedLists[i].className != 'bulleted-list') + unorderedLists[i].style.display = "none"; + else + unorderedLists[i].style.display = "block"; + } var orderedLists = document.getElementsByTagName("ol"); for (var i = 0; i < orderedLists.length; i++) orderedLists[i].style.display = "none"; @@ -285,6 +289,7 @@ */ if (list.id != '$first_relid.list' && list.id != '$second_relid.list' + && list.className != 'bulleted-list' && (currentAnchor == '' || ! shouldExpand(currentList, currentAnchor, list.id))) { list.style.display = "none"; @@ -392,7 +397,7 @@ # Put attributions on their own lines. # Check for trailing parenthesized attribution with no following period. # Exclude things like "(see #3 above)" and "(use the bug number instead of xxxx)" - unless ($item =~ s:\s*(\((?!see #|use the bug number)[^)"]+?\))\s*$:
$1:) { + unless ($item =~ s:\s*(\((?!see #|use the bug number)[^)"]+?\))\s*$:\n
$1:) { # If attribution is not found, then look for attribution with a # trailing period, but try not to include trailing parenthesized things # that are not attributions. @@ -412,12 +417,45 @@ my ($no_parens) = $parenthetical =~ /^\((.*)\)$/s; my @words = grep {/\S/} split /\s+/, $no_parens; if ($no_parens =~ /\b(?:via|updates\s+from)\b/i || scalar(@words) <= 3) { - $subst = "
$parenthetical"; + $subst = "\n
$parenthetical"; } } $subst . $trailing_period_and_or_issue; }ex; } + + $item =~ s{(.*?)(
.*?
)|(.*)} + { + my $uncode = undef; + if (defined($2)) { + $uncode = $1 || ''; + $uncode =~ s{((?<=\n)[ ]*-.*\n(?:.*\n)*)} + { + my $bulleted_list = $1; + $bulleted_list + =~ s{(?:(?<=\n)|\A)[ ]*-[ ]*(.*(?:\n|\z)(?:[ ]+[^ -].*(?:\n|\z))*)} + {
  • \n$1
  • \n}g; + $bulleted_list + =~ s!(\n)!
      \n$1
    \n!s; + $bulleted_list; + }ge; + "$uncode$2"; + } else { + $uncode = $3 || ''; + $uncode =~ s{((?<=\n)[ ]*-.*\n(?:.*\n)*)} + { + my $bulleted_list = $1; + $bulleted_list + =~ s{(?:(?<=\n)|\A)[ ]*-[ ]*(.*(?:\n|\z)(?:[ ]+[^ -].*(?:\n|\z))*)} + {
  • \n$1
  • \n}g; + $bulleted_list + =~ s!(\n)!
      \n$1
    \n!s; + $bulleted_list; + }ge; + $uncode; + } + }sge; + $item =~ s:\n{2,}:\n

    \n:g; # Keep paragraph breaks # Link LUCENE-XXX, SOLR-XXX and INFRA-XXX to JIRA $item =~ s{(?:${jira_url_prefix})?((?:LUCENE|SOLR|INFRA)-\d+)}