Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -263,6 +263,7 @@ def load_html(inp,title): | |
| 263 | 
             
                        #print(f'prom:: {prom}')
         | 
| 264 | 
             
                        ht+=f"""<div class="div_box">"""
         | 
| 265 | 
             
                        if blog:
         | 
|  | |
| 266 | 
             
                            ht+=f"""<pre class="bpost">{blog}</pre>"""
         | 
| 267 | 
             
                        if comm:
         | 
| 268 | 
             
                            ht+=f"""<pre class="resp1">{comm}</pre>"""
         | 
| @@ -273,6 +274,7 @@ def load_html(inp,title): | |
| 273 | 
             
                    html=h.read()
         | 
| 274 | 
             
                    html = html.replace("$body",f"{ht}")
         | 
| 275 | 
             
                    html = html.replace("$title",f"{title}")
         | 
|  | |
| 276 | 
             
                h.close()
         | 
| 277 | 
             
                return html
         | 
| 278 |  | 
|  | |
| 263 | 
             
                        #print(f'prom:: {prom}')
         | 
| 264 | 
             
                        ht+=f"""<div class="div_box">"""
         | 
| 265 | 
             
                        if blog:
         | 
| 266 | 
            +
                            ht+=f"""<div class="bhead"><div><h1>$btitle</h1></div></div>"""
         | 
| 267 | 
             
                            ht+=f"""<pre class="bpost">{blog}</pre>"""
         | 
| 268 | 
             
                        if comm:
         | 
| 269 | 
             
                            ht+=f"""<pre class="resp1">{comm}</pre>"""
         | 
|  | |
| 274 | 
             
                    html=h.read()
         | 
| 275 | 
             
                    html = html.replace("$body",f"{ht}")
         | 
| 276 | 
             
                    html = html.replace("$title",f"{title}")
         | 
| 277 | 
            +
                    html = html.replace("$btitle",f"{title}")
         | 
| 278 | 
             
                h.close()
         | 
| 279 | 
             
                return html
         | 
| 280 |  | 
