" % re.sub("^\.", "", re.sub("\d+?-", "", static_display)))
print(ind*4 + "
")
@@ -501,7 +523,10 @@ else:
if month_display == date_to_compare or not month_display:
if post_display == title.replace(" ", "-") or not post_display:
if allentries_display == "1" or entry_counter < entries_per_page:
- content = open(entry, "r", encoding="utf8")
+ if utf8:
+ content = open(entry, "r", encoding="utf8")
+ else:
+ content = open(entry, "r")
print(ind*3 + "
")
if permalinks:
print(ind*4 + "
" % (title.replace(" ", "-"), title))
@@ -526,7 +551,10 @@ else:
comments_file = glob(os.path.join(entries_dir, title + ".comments"))
if post_display:
if comments_file:
- comments_content = open(comments_file[0], "r", encoding="utf8")
+ if utf8:
+ comments_content = open(comments_file[0], "r", encoding="utf8")
+ else:
+ comments_content = open(comments_file[0], "r")
print(ind*3 + "
")
print(ind*2 + "
")
print("")
@@ -592,7 +620,10 @@ else:
print(ind*3 + "