From 13acf9d754392c3dcd379211a201b40f92612c97 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 29 Jul 2007 03:04:55 +0000 Subject: [PATCH] Allow question wrapping. --- exec/html_noyes.js | 4 ++-- exec/html_yesno.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exec/html_noyes.js b/exec/html_noyes.js index d6623ed4a4..645b7b700b 100644 --- a/exec/html_noyes.js +++ b/exec/html_noyes.js @@ -12,12 +12,12 @@ if(user.settings & USER_HTML) { console.write("\2\2<html><head><title>"+strip_ctrl(console.question)+"</title></head>"); console.write('<body bgcolor="black" text="#a8a8a8">'); console.write(' <br> <br> <br> <br> <br> <br> <br>'); - console.write('<center><h1>'+asc2htmlterm(console.question,false,true).replace(/(?: )*<br>/g,'').replace(/nowrap/g,'')+'</h1></center>'); + console.write('<center><h1>'+asc2htmlterm(console.question,false,true).replace(/(?: )*<br>/g,'').replace(/nowrap/g,'').replace(/(?: )/g,' ')+'</h1></center>'); console.write(' <br> <br> <br>'); console.write('<table width="100%"><tr><td align="center" width="50%">'); console.write('<h3><font color="#a8a8a8"><a href="Y">Yes</a></h3>'); console.write('</td><td align="center" width="50%">'); - console.write('<h3><font color="#a8a8a8"><a href="N">No</a></h3>'); + console.write('<h2><font color="#a8a8a8"><a href="N">No</a></h2>'); console.write('</td></tr></table>'); console.write('</body></html>\2'); bbs.sys_status=os; diff --git a/exec/html_yesno.js b/exec/html_yesno.js index 5fb37496a5..a065c0428d 100644 --- a/exec/html_yesno.js +++ b/exec/html_yesno.js @@ -12,10 +12,10 @@ if(user.settings & USER_HTML) { console.write("\2\2<html><head><title>"+strip_ctrl(console.question)+"</title></head>"); console.write('<body bgcolor="black" text="#a8a8a8">'); console.write(' <br> <br> <br> <br> <br> <br> <br>'); - console.write('<center><h1>'+asc2htmlterm(console.question,false,true).replace(/(?: )*<br>/g,'').replace(/nowrap/g,'')+'</h1></center>'); + console.write('<center><h1>'+asc2htmlterm(console.question,false,true).replace(/(?: )*<br>/g,'').replace(/nowrap/g,'').replace(/(?: )/g,' ')+'</h1></center>'); console.write(' <br> <br> <br>'); console.write('<table width="100%"><tr><td align="center" width="50%">'); - console.write('<h3><font color="#a8a8a8"><a href="Y">Yes</a></h3>'); + console.write('<h2><font color="#a8a8a8"><a href="Y">Yes</a></h2>'); console.write('</td><td align="center" width="50%">'); console.write('<h3><font color="#a8a8a8"><a href="N">No</a></h3>'); console.write('</td></tr></table>'); -- GitLab