DEHTMLDIFF(1)

πŸ“¦
version 0.4.5 Β· 2 versions
  • 0.4.5 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.3.3 Β· nixos 26.05, nixpkgs unstable
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– DEHTMLDIFF β€” bestie's guide to yanking a real diff out of an HTML page πŸ’–

okay so, welcome to dehtmldiff, aka the tool that looks at a sad lil web page and goes "bestie… there's a diff in there somewhere, let me get it out for you." 🫢


✨ NAME ✨

dehtmldiff β€” get usable diff from an HTML page 🌸


πŸŽ€ SYNOPSIS πŸŽ€

dehtmldiff [file...]

dehtmldiff {[--help] | [--version]}

like, yes, that's the whole vibe check. you either hand it some files, or you ask it for help or its version. that's it, that's the girl. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” dehtmldiff creates usable diff files from HTML pages. iconic behaviour, no cap.

and why would you even want that, you ask? because of this specific scenario: a patch got posted to a mailing list, and the only way you can see it is through a web page. which, lowkey tragic. the HTML mangles it all up and it's giving ✨unusable✨.

so the corrected diff gets sent to standard output. periodt. πŸ’«

⚠️ heads up bestie: you will probably need to use the -l option when applying the patch, so that you ignore any whitespace differences that might be lurking in there. don't skip this, i'm begging 😭

🌈 OPTIONS 🌈

  • --help β€” shows you a short usage message. quick lil "hey here's how i work" moment πŸŽ€
  • --version β€” shows you the version number of dehtmldiff. the "how old am i" reveal πŸ’β€β™€οΈ

πŸ’€ LIMITATIONS πŸ’€

okay we need to be real for a sec. πŸ™ˆ

the way this command works is fairly primitive β€” it literally boils down to some simple text replacements, followed by an unwrapdiff pass. that's the whole trick. no magic, no fancy parsing, just vibes and find-and-replace.

and because of that: all of the limitations that apply to unwrapdiff also apply to dehtmldiff. every single one. it's giving "the flaws are inherited, sorry babe." 😭


πŸ‘‘ AUTHOR πŸ‘‘

Tim Waugh <twaugh@redhat.com>

  • Package maintainer πŸ’œ

and that's the whole page, bestie ✨ go forth and de-HTML your diffs, you absolute main character πŸ«ΆπŸ’–

patchutils Β· 17 January 2003 Β· mwah, bye πŸ‘‹πŸŽ€