jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject [09/16] jspwiki git commit: expose m_inlineImages
Date Sun, 16 Jul 2017 11:54:54 GMT
expose m_inlineImages


Project: http://git-wip-us.apache.org/repos/asf/jspwiki/repo
Commit: http://git-wip-us.apache.org/repos/asf/jspwiki/commit/c5bf2e9c
Tree: http://git-wip-us.apache.org/repos/asf/jspwiki/tree/c5bf2e9c
Diff: http://git-wip-us.apache.org/repos/asf/jspwiki/diff/c5bf2e9c

Branch: refs/heads/master
Commit: c5bf2e9c7d8331910b41a3461906043c5fc98ba8
Parents: 303b4a9
Author: juanpablo <juanpablo@apache.org>
Authored: Mon Jul 3 20:44:48 2017 +0200
Committer: juanpablo <juanpablo@apache.org>
Committed: Sun Jul 16 13:26:32 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/wiki/parser/MarkupParser.java     | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jspwiki/blob/c5bf2e9c/jspwiki-war/src/main/java/org/apache/wiki/parser/MarkupParser.java
----------------------------------------------------------------------
diff --git a/jspwiki-war/src/main/java/org/apache/wiki/parser/MarkupParser.java b/jspwiki-war/src/main/java/org/apache/wiki/parser/MarkupParser.java
index 2f04faf..e23df81 100644
--- a/jspwiki-war/src/main/java/org/apache/wiki/parser/MarkupParser.java
+++ b/jspwiki-war/src/main/java/org/apache/wiki/parser/MarkupParser.java
@@ -14,7 +14,7 @@
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
-    under the License.  
+    under the License.
 */
 package org.apache.wiki.parser;
 
@@ -74,7 +74,7 @@ public abstract class MarkupParser
     /**
      *  Constructs a MarkupParser.  The subclass must call this constructor
      *  to set up the necessary bits and pieces.
-     *  
+     *
      *  @param context The WikiContext.
      *  @param in The reader from which we are reading the bytes from.
      */
@@ -163,7 +163,7 @@ public abstract class MarkupParser
     /**
      *  Adds a HeadingListener to the parser chain.  It will be called whenever
      *  a parsed header is found.
-     *  
+     *
      *  @param listener The listener to add.
      */
     public void addHeadingListener( HeadingListener listener )
@@ -199,6 +199,10 @@ public abstract class MarkupParser
         m_inlineImages = toggle;
     }
 
+    public boolean isImageInlining() {
+        return m_inlineImages;
+    }
+
     /**
      *  Parses the document.
      *  @return the parsed document, as a WikiDocument
@@ -236,7 +240,7 @@ public abstract class MarkupParser
     /**
      *  Push back any character to the current input.  Does not
      *  push back a read EOF, though.
-     *  
+     *
      *  @param c Character to push back.
      *  @throws IOException In case the character cannot be pushed back.
      */
@@ -249,7 +253,7 @@ public abstract class MarkupParser
             m_in.unread( c );
         }
     }
-    
+
     /**
      *  Writes HTML for error message.  Does not add it to the document, you
      *  have to do it yourself.


Mime
View raw message