[MIRROR] more missing tags (#9918)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-23 11:48:06 -07:00
committed by GitHub
parent 3d40810955
commit c0ee2c30d3
95 changed files with 141 additions and 138 deletions

View File

@@ -209,6 +209,8 @@ Book Cart End
/// Proc that handles sending the book information to the user, as well as some housekeeping stuff.
/obj/item/book/proc/display_content(mob/living/user)
if(!findtext(dat, regex("^<html")))
dat = "<html>[dat]</html>"
user << browse(replacetext(dat, "<html>", "<html><TT><I>Penned by [author].</I></TT> <BR>"), "window=book")
/obj/item/book/attackby(obj/item/W as obj, mob/user as mob)
@@ -339,7 +341,7 @@ Book Cart End
else if(istype(pages[page], /obj/item/photo))
var/obj/item/photo/P = W
user << browse_rsc(P.img, "tmp_photo.png")
user << browse(dat + "<html><head><title>[P.name]</title></head>" \
user << browse("<html>" + dat + "<head><title>[P.name]</title></head>" \
+ "<body style='overflow:hidden'>" \
+ "<div> <img src='tmp_photo.png' width = '180'" \
+ "[P.scribble ? "<div> Written on the back:<br><i>[P.scribble]</i>" : null]"\