• 
      

    Fix bad italic styling for code blocks in CodeMirror.

    Review Request #7590 — Created Aug. 14, 2015 and submitted

    Information

    Review Board
    release-2.5.x
    4f0111c...

    Reviewers

    CodeMirror uses the .cm-comment class to indicated inline and fenced code
    blocks, which our reviews CSS displays in italics. This change overrides that
    class when inside a CodeMirror to not show italics.

    • Wrote a comment with inline and fenced code blocks. Saw that the text was no
      longer italicized in the editor.
    • Published a review with a code block containing a comment. Saw that comment
      was displayed in italics.
    reviewbot
    1. Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/static/rb/css/pages/reviews.less
      
      
      
      Tool: Pyflakes
      Ignored Files:
          reviewboard/static/rb/css/pages/reviews.less
      
      
    2. 
        
    chipx86
    1. <p>So ideally, comments should be italic, since they render as italic, but literals should not be. Maybe that's not possible, though... If not, this is fine, but we should make a task to look into whether we can differentiate the two.</p>

      1. I looked into this already. Short of hacking up CodeMirror, I don't think we can do anything.

    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.5.x (f32e670)