2011/01/25

Script: Post work of VIM-TOhtml

Replace leading spaces with ' '.

#!/usr/bin/perl

use strict;
use warnings;

while (<>) {
    s/^ +/'&nbsp;' x length($&)/oe if /^ +/o;
    print;
}