Opened 15 years ago

Last modified 10 years ago

#4920 confirmed Bug

Script tags are not indented in the output HTML

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0.1
Keywords: Cc:

Description

This is not a bug, but it simply doesn't look nice.

Using the following code in full page mode:

<html>
	<head>
		<title>CKEditor Sample</title>
		<meta content="text/html; charset=utf-8" http-equiv="content-type" />
		<script type="text/javascript" src="script1.js"></script>
		<script type="text/javascript" src="script2.js"></script>
		<link href="/search" rel="search" />
		<link href="my.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<p>
			test</p>
	</body>
</html>

it is transformed into:

<html>
	<head>
		<title>CKEditor Sample</title>
		<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<script type="text/javascript" src="script1.js"></script><script type="text/javascript" src="script2.js"></script>		<link href="/search" rel="search" />
		<link href="my.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<p>
			test</p>
	</body>
</html>

Note that <script> tags are in one line and in the same line there is also one <link> element.

This bug existed also when the full page mode was not available.

Change History (1)

comment:1 Changed 10 years ago by Jakub Ś

This is still reproducible in latest CKEditor 4.4.4.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy