Page MenuHomePhabricator

Put cows and figlet bannners in <pre> in HTML mail bodies
ClosedPublic

Authored by epriestley on Oct 9 2015, 3:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 3:44 PM
Unknown Object (File)
Sat, Apr 13, 9:02 PM
Unknown Object (File)
Thu, Apr 11, 9:01 AM
Unknown Object (File)
Sat, Apr 6, 2:13 AM
Unknown Object (File)
Sat, Mar 30, 4:44 PM
Unknown Object (File)
Feb 20 2024, 1:10 AM
Unknown Object (File)
Feb 4 2024, 5:13 PM
Unknown Object (File)
Feb 3 2024, 6:46 AM
Subscribers

Details

Summary

Fixes T9538. Ref T9408. cowsay and figlet Remarkup rules are being mangled in HTML mail right now. Put them in <pre> to unmangle them.

Test Plan

Sent myself a cow + figlet in mail.

Used bin/mail show-outbound --id ... --dump-html > dump.html + open that HTML file in Safari to preview HTML mail.

Saw linebreaks and monospaced formatting.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Put cows and figlet bannners in <pre> in HTML mail bodies.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
____________ < amoozing > ------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
This revision is now accepted and ready to land.Oct 9 2015, 3:02 AM
This revision was automatically updated to reflect the committed changes.
_________________________________ < OooOOoooo!! Happy Halloween!! > --------------------------------- \ ,+*^^*+___+++_ \ ,*^^^^ ) \ _+* ^**+_ \ +^ _ _++*+_+++_, ) _+^^*+_ ( ,+*^ ^ \+_ ) { ) ( ,( ,_+--+--, ^) ^\ { (@) } f ,( ,+-^ __*_*_ ^^\_ ^\ ) {:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) / ( / ( ( ,___ ^*+_+* ) < < \ U _/ ) *--< ) ^\-----++__) ) ) ) ( ) _(^)^^)) ) )\^^^^^))^*+/ / / ( / (_))_^)) ) ) ))^^^^^))^^^)__/ +^^ ( ,/ (^))^)) ) ) ))^^^^^^^))^^) _) *+__+* (_))^) ) ) ))^^^^^^))^^^^^)____*^ \ \_)^)_)) ))^^^^^^^^^^))^^^^) (_ ^\__^^^^^^^^^^^^))^^^^^^^) ^\___ ^\__^^^^^^))^^^^^^^^)\\ ^^^^^\uuu/^^\uuu/^^^^\^\^\^\^\^\^\^\ ___) >____) >___ ^\_\_\_\_\_\_\) ^^^//\\_^^//\\_^ ^(\_\_\_\) ^^^ ^^ ^^^ ^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ ( H ) a ) v ) e ) ( A ) n ) ( U ) n ) r ) e ) g ) r ) e ) t ) t ) a ) b ) l ) e ) ( B ) o ) x ) i ) n ) g ) ( D ) a ) y ) ! ) \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/

lol - I must say I was disappointed to discover that the ghost font wasn't installed:

Screen Shot 2015-10-08 at 11.07.41 PM.png (412×2 px, 78 KB)

That is a sweet font!

I'm not sure what the license is for the library at java.de so I'm hesitant to just dump them into externals/ and redistribute them.

We should also have some kind of "list of installed cows" and "list of installed figlet fonts" UI somewhere.

put a fax icon next to the meme icon in the remarkup bar, pops a dialog with installed choices

I was going to diff up a change but had mucked up so much of the mercurial related code that I set it aside (and I'm not super familiar with using git) -- but the resources/cows/custom and resources/figlet/custom folders are not in the .gitignore yet.

That is a sweet font!

I'm not sure what the license is for the library at java.de so I'm hesitant to just dump them into externals/ and redistribute them.

I was referring to being usable here on secure.phabricator.com -- I wouldn't expect anything outside of the OG fonts/cows to ship with Phabricator. That aside, the lack of licensing information would give cause to avoid it either way.