Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42638

Emoticon filter interferes with <pre> content

XMLWordPrintable

    • MOODLE_25_STABLE, MOODLE_28_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MDL-42638-master
    • Hide

      It should be possible to embed the code to be shown in
      <span class="nolink">
      </span>

      <span class="nolink">
      <pre>
      - (id)initWithBitmapDataPlanes:(unsigned char **)planes 
                          pixelsWide:(NSInteger)width 
                          pixelsHigh:(NSInteger)height 
                       bitsPerSample:(NSInteger)bps 
                     samplesPerPixel:(NSInteger)spp 
                            hasAlpha:(BOOL)alpha 
                            isPlanar:(BOOL)isPlanar 
                      colorSpaceName:(NSString *)colorSpaceName 
                        bitmapFormat:(NSBitmapFormat)bitmapFormat 
                         bytesPerRow:(NSInteger)rowBytes 
                        bitsPerPixel:(NSInteger)pixelBits;
      </pre>
      </span>
      

      Show
      It should be possible to embed the code to be shown in <span class="nolink"> </span> <span class="nolink"> <pre> - (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSString *)colorSpaceName bitmapFormat:(NSBitmapFormat)bitmapFormat bytesPerRow:(NSInteger)rowBytes bitsPerPixel:(NSInteger)pixelBits; </pre> </span>
    • Hide

      Automated tests provided.

      Show
      Automated tests provided.

      1. Enable the emoticon filter on your site
      2. Create a forum post with the following content:

      Test content:
      <pre>
      - (id)initWithBitmapDataPlanes:(unsigned char **)planes 
                          pixelsWide:(NSInteger)width 
                          pixelsHigh:(NSInteger)height 
                       bitsPerSample:(NSInteger)bps 
                     samplesPerPixel:(NSInteger)spp 
                            hasAlpha:(BOOL)alpha 
                            isPlanar:(BOOL)isPlanar 
                      colorSpaceName:(NSString *)colorSpaceName 
                        bitmapFormat:(NSBitmapFormat)bitmapFormat 
                         bytesPerRow:(NSInteger)rowBytes 
                        bitsPerPixel:(NSInteger)pixelBits;
      </pre>
      

      Expected result:
      The content in <pre> is preserved

      Actual result:
      Sad smiley face images are replaced in the pre content.

            lucaboesch Luca Bösch
            poltawski Dan Poltawski
            Jan Dageförde Jan Dageförde
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.