[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

raeburn raeburn at source.lon-capa.org
Thu May 9 01:29:30 EDT 2013


raeburn		Thu May  9 05:29:30 2013 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Avoid xhtml errors for "blank web page" because of multiple DOCTYPE html
    entries when page is rendered as /uploaded doc in course context.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.544 loncom/interface/londocs.pm:1.545
--- loncom/interface/londocs.pm:1.544	Mon May  6 14:12:21 2013
+++ loncom/interface/londocs.pm	Thu May  9 05:29:29 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.544 2013/05/06 14:12:21 raeburn Exp $
+# $Id: londocs.pm,v 1.545 2013/05/09 05:29:29 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -340,10 +340,8 @@
                 }
                 my $initialtext = &mt('Replace with your own content.');
                 my $newhtml = <<END;
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<html>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>$name</title>
 </head>
 <body bgcolor="#ffffff">




More information about the LON-CAPA-cvs mailing list