Skip to content

Commit

Permalink
Handle [section] and [defaultsection] tags when posting to IcculusNews.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 29, 2002
1 parent 0982384 commit 579a4e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IcculusFinger_archiveplans.pl
Expand Up @@ -82,6 +82,8 @@ sub run_external_updater {
1 while ($t =~ s/\[center\](.*?)\[\/center\]/<center>$1<\/center>/is);
1 while ($t =~ s/\[img=(".*?")\].*?\[\/img\]/<img src=$1>/is);
1 while ($t =~ s/\[link=(".*?")\](.*?)\[\/link\]/<a href=$1>$2<\/a>/is);
1 while ($t =~ s/\[defaultsection=".*?"\](\n|\r\n|\b)//is);
1 while ($t =~ s/\[section=".*?"\](\n|\r\n|\b)(.*?)[\/section](\n|\r\n|\b)/$2/is);
1 while ($t =~ s/\[font(.*?)\](.*?)\[\/font\]/<font $1>$2<\/font>/is);

print(" parsed markup tags...\n") if $debug;
Expand Down

0 comments on commit 579a4e7

Please sign in to comment.