Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3533

jekyll chokes on nbsp and emdash for Wicket site

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 1.5-RC2
    • None
    • site
    • None
    • Ubuntu 10.04.2 LTS
      gem 1.6.2
      classifier (1.3.3)
      directory_watcher (1.3.2)
      fast-stemmer (1.0.0)
      jekyll (0.10.0)
      liquid (2.2.2)
      maruku (0.6.0)
      syntax (1.0.0)

    Description

      I've checked out the Wicket site from SVN. When I try to run jekyll to generate the site and try to access http://localhost:4000/, I got the error below, saying Undeclared entity ' ' and '&emdash;'.

      — error message from jekyll —

      kent@dragon:~/oss/workspace/wicket-site$ jekyll --server --auto
      Configuration from /home/kent/oss/workspace/wicket-site/_config.yml
      Auto-regenerating enabled: /home/kent/oss/workspace/wicket-site -> ./_site
      [2011-03-13 10:47:02] regeneration: 126 files changed
      [2011-03-13 10:47:02] INFO WEBrick 1.3.1
      [2011-03-13 10:47:02] INFO ruby 1.9.1 (2010-01-10) [i486-linux]
      [2011-03-13 10:47:07] INFO WEBrick::HTTPServer#start: pid=5640 port=4000
      [2011-03-13 10:47:08] ERROR `/' not found.

      ___________________________________________________________________________

      Maruku tells you:
      +---------------------------------------------------------------------------
      REXML cannot parse this block of HTML/XML:
        <marukuwrap><div id="mvncmd">
        <div>
        <label for="groupId" title="Base Package">GroupId:</label>
        <input type="text" id="groupId" value="com.mycompany" onkeyup="changeIt();" /><span title="Base Package"> </span><br />
        <label for="artifactId" title="Project Name">ArtifactId:</label>
        <input type="text" id="artifactId" value="myproject" onkeyup="changeIt();" /><span title="Project Name"> </span><br />
        <label for="version" title="Wicket Version">Version:</label>
        <select id="version" onchange="changeIt();">
       
       
        <option value="1.5-SNAPSHOT">1.5-SNAPSHOT</option>
       
       
       
        <option value="1.5-rc2">1.5-rc2</option>
       
       
       
        <option value="1.5-RC1">1.5-RC1</option>
       
       
       
        <option value="1.4-SNAPSHOT">1.4-SNAPSHOT</option>
       
       
       
        <option value="1.4.16" selected="selected">1.4.16</option>
       
       
       
        <option value="1.4.15">1.4.15</option>
       
       
        </select><span title="Wicket Version"> </span>
        </div>
        <div>
        <label for="cmdLine" id="cmdLabel">Command Line:</label>
        <textarea id="cmdLine" onfocus="this.select();">
        </textarea>
        <script>changeIt();</script>
        </div>
        <br />
        </div></marukuwrap>
      #<REXML::ParseException: #<RuntimeError: Undeclared entity ' ' in raw string " ">
      /usr/lib/ruby/1.9.1/rexml/text.rb:165:in `block in check'
      /usr/lib/ruby/1.9.1/rexml/text.rb:153:in `scan'
      /usr/lib/ruby/1.9.1/rexml/text.rb:153:in `check'
      /usr/lib/ruby/1.9.1/rexml/text.rb:125:in `parent='
      /usr/lib/ruby/1.9.1/rexml/parent.rb:19:in `add'
      /usr/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:45:in `parse'
      /usr/lib/ruby/1.9.1/rexml/document.rb:228:in `build'
      /usr/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/helpers.rb:93:in `new'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/helpers.rb:93:in `md_html'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:255:in `read_raw_html'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:88:in `parse_blocks'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:41:in `parse_text_as_markdown'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:57:in `parse_doc'
      /usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/maruku.rb:30:in `initialize'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/converters/markdown.rb:108:in `new'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/converters/markdown.rb:108:in `convert'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/convertible.rb:43:in `transform'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/convertible.rb:77:in `do_layout'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/page.rb:88:in `render'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/site.rb:147:in `block in render'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/site.rb:146:in `each'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/site.rb:146:in `render'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/lib/jekyll/site.rb:81:in `process'
      /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.10.0/bin/jekyll:153:in `block in <top (required)>'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher.rb:564:in `call'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher.rb:564:in `block in notify_observers'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher.rb:563:in `each'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher.rb:563:in `notify_observers'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher.rb:323:in `block in initialize'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher/scanner.rb:224:in `call'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher/scanner.rb:224:in `notify'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher/scanner.rb:102:in `run_once'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher/scanner.rb:150:in `run_loop'
      /usr/lib/ruby/gems/1.9.1/gems/directory_watcher-1.3.2/lib/directory_watcher/scanner.rb:45:in `block in start'
      ...
      Undeclared entity ' ' in raw string " "
      Line: 4
      Position: 228
      Last 80 unconsumed characters:
      </span>>
      +---------------------------------------------------------------------------
      !/usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/errors_management.rb:56:in `maruku_recover'
      !/usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/helpers.rb:97:in `rescue in md_html'
      !/usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/helpers.rb:85:in `md_html'
      !/usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:255:in `read_raw_html'
      !/usr/lib/ruby/gems/1.9.1/gems/maruku-0.6.0/lib/maruku/input/parse_block.rb:88:in `parse_blocks'
      ___________________________________________________________________________
      localhost - - [13/Mar/2011:10:47:08 HKT] "GET / HTTP/1.1" 404 270
      Referer -> /
      Wrapping bad html in a PRE with class 'markdown-html-error'
      <div id="mvncmd">
      <div>
      <label for="groupId" title="Base Package">GroupId:</label>
      <input type="text" id="groupId" value="com.mycompany" onkeyup="changeIt();" /><span title="Base Package"> </span><br />
      <label for="artifactId" title="Project Name">ArtifactId:</label>
      <input type="text" id="artifactId" value="myproject" onkeyup="changeIt();" /><span title="Project Name"> </span><br />
      <label for="version" title="Wicket Version">Version:</label>
      <select id="version" onchange="changeIt();">
      <option value="1.5-SNAPSHOT">1.5-SNAPSHOT</option>
      <option value="1.5-rc2">1.5-rc2</option>
      <option value="1.5-RC1">1.5-RC1</option>
      <option value="1.4-SNAPSHOT">1.4-SNAPSHOT</option>
      <option value="1.4.16" selected="selected">1.4.16</option>
      <option value="1.4.15">1.4.15</option>
      </select><span title="Wicket Version"> </span>
      </div>
      <div>
      <label for="cmdLine" id="cmdLabel">Command Line:</label>
      <textarea id="cmdLine" onfocus="this.select();">
      </textarea>
      <script>changeIt();</script>
      </div>
      <br />
      </div>localhost - - [13/Mar/2011:10:47:08 HKT] "GET /favicon.ico HTTP/1.1" 200 1406
      • -> /favicon.ico

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            freemant Kent Tong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified