You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/08/23 01:25:30 UTC

svn commit: r1376312 - /lucene/cms/trunk/content/pylucene/features.mdtext

Author: rmuir
Date: Wed Aug 22 23:25:29 2012
New Revision: 1376312

URL: http://svn.apache.org/viewvc?rev=1376312&view=rev
Log:
try to restore the code block style too

Modified:
    lucene/cms/trunk/content/pylucene/features.mdtext

Modified: lucene/cms/trunk/content/pylucene/features.mdtext
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/pylucene/features.mdtext?rev=1376312&r1=1376311&r2=1376312&view=diff
==============================================================================
--- lucene/cms/trunk/content/pylucene/features.mdtext (original)
+++ lucene/cms/trunk/content/pylucene/features.mdtext Wed Aug 22 23:25:29 2012
@@ -106,11 +106,13 @@ array values after the call, a Java arra
 first.<br/>
 For example, accessing termDocs:
 
+<code>
     termDocs = reader.termDocs(Term("isbn", isbn))
     docs = JArray('int')(1)   # allocate an int[1] array
     freq = JArray('int')(1)   # allocate an int[1] array
     if termDocs.read(docs, freq) == 1:
       bits.set(docs[0])     # access the array's first element
+</code>
 
 In addition to <i>int</i>, the <i>JArray</i>
 function accepts <i>object</i>, <i>string</i>,