Simplify the logic to ignore the spammish div-s - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset 5a672ea17f9a5da6a535cf09059bd4f040039c9b
 (DIR) parent 5f9e8c34c4ee8d65cf9ecbaa904a9f2086b6386a
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sat, 25 Aug 2018 22:34:01 
       
       Simplify the logic to ignore the spammish div-s
       
       Diffstat:
        internazionale/article.cgi |  37 ++++++++++++-------------------------
        1 files changed, 12 insertions(+), 25 deletions(-)
       ---
       diff -r 5f9e8c34c4ee -r 5a672ea17f9a internazionale/article.cgi
       --- a/internazionale/article.cgi        Sat Aug 25 21:58:06 2018 +0200
       +++ b/internazionale/article.cgi        Sat Aug 25 22:34:01 2018 +0200
       @@ -8,36 +8,23 @@
        {
        
               awk '
       -       /^\<div class="hentry hentry--item hentry--banner">/ {
       -               ignore = 1
       +       /<div class="hentry hentry--item hentry--banner">/,/<\/div>/ {
       +               next
       +       }
       +       /<div class="item_tag_single">/,/<\/div>/ {
                       next
               }
       -       /^\<\/div\>/ {
       -               ignore = 0
       +       /<div class="item_share_inline">/,/<\/div>/ {
       +               next
       +       }
       +       /<div class="item_tags" itemprop="keywords">/,/<\/div>/ {
       +               next
       +       }
       +       /<div class="item_subscribe">/,/<\/div>/ {
                       next
               }
        
       -       /^        \<div class="item_tag_single">/ ||
       -       /^        \<div class="item_share_inline">/ {
       -               ignore = 1
       -               next
       -       }
       -       /^        \<\/div>/ {
       -               ignore = 0
       -               next
       -       }
       -
       -       /^            \<div class="item_tags" itemprop="keywords">/ ||
       -       /^            \<div class="item_subscribe">/ {
       -               ignore = 1
       -               next
       -       }
       -       /^            \<\/div\>/ {
       -               ignore = 0
       -               next
       -       }
       -
       -       !ignore {
       +       {
                       print
               }
               '