#104 ✓invalid
Richard Funderburk

Dimension doesn't work properly for latex - revisited

Reported by Richard Funderburk | February 17th, 2009 @ 10:30 PM | in 4.1.9

Ticket #103 was addressed and fixed, but there is still a mismatch between HTML and Latex generation:


works for html, doesn't work for Latex.

Comments and changes to this ticket

  • Jason Garber

    Jason Garber February 18th, 2009 @ 03:53 PM

    • State changed from “new” to “open”

    It doesn't work for HTML or Latex. Only three dimensions are currently supported. Do you regularly need to express time? :)

      1) Failure:
        [./test/helper.rb:90:in `assert_equal'
         ./test/helper.rb:17:in `test_html_basic_many_dimension_signs']:
    expected: "<p>2&#215;2&#215;2&#215;3</p>"
     but was: "<p>2&#215;2&#215;2x3</p>"
      2) Failure:
        [./test/helper.rb:90:in `assert_equal'
         ./test/helper.rb:17:in `test_latex_basic_many_dimension_signs']:
    expected: "$2\\times2\\times2\\times3$\n\n"
     but was: "$2\\times2\\times2$x3\n\n"
    5330 tests, 5332 assertions, 2 failures, 0 errors
  • Jason Garber

    Jason Garber February 18th, 2009 @ 03:57 PM

    • Tag set to dim
    • State changed from “open” to “invalid”

    If you want more than three, I'm going to need a patch. I can't figure it out quickly. Here's the test case:

    name: many dimension signs
    in: "2x2x2x3"
    html: "<p>2&#215;2&#215;2&#215;3</p>"
    latex: "$2\\times2\\times2\\times3$\n\n"

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket