From 040719487a3019f1587ceb757955fdd11e33a739 Mon Sep 17 00:00:00 2001 From: gideonwolfe Date: Mon, 24 Aug 2020 00:51:35 -0700 Subject: [PATCH] add basic pretty --- install.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.py b/install.py index d4fb089..62bde26 100755 --- a/install.py +++ b/install.py @@ -4,6 +4,7 @@ import yaml import os from os.path import expanduser from shutil import copyfile +from bs4 import BeautifulSoup # get home directory home = expanduser("~") @@ -15,6 +16,12 @@ config_path = home + '/.config/StartTree/config.yaml' # get cache path cache_dir = home + '/.cache/StartTree' +def prettifyHTML(): + html = "

Hello

" + soup = BeautifulSoup(html, 'html.parser') + prettyHTML = print(soup.prettify()) + return prettyHTML + def setup(): # check if .config path exists if not os.path.isdir(home + '/.config'):