Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML format selection formatting entire line issue #25521

Closed
egamma opened this issue Apr 27, 2017 · 1 comment
Closed

HTML format selection formatting entire line issue #25521

egamma opened this issue Apr 27, 2017 · 1 comment
Assignees
Milestone

Comments

@egamma
Copy link
Member

egamma commented Apr 27, 2017

Testing #25342

Format the selected range (<<< >>>). Notice that the body tag is move up one line.

<html>
<head>
	<meta charset="utf-8">
	<title>VSCode Tests</title>
	<link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
</head>
<body>
	<div id="mocha"></div>

	<!--<script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
	<script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>-->
	<script src="/out/vs/loader.js"></script>
	<script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>

*<<<*	<script>
		mocha.setup('tdd');

				require.config({
			baseUrl: '/out',
			paths: {
				assert: '/test/assert.js'
			}
		});

		require({{ modules }}, function () {
			mocha.run();
		});
	</script>
*>>>*</body>
</html>

Result

<html>
<head>
	<meta charset="utf-8">
	<title>VSCode Tests</title>
	<link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
</head>
<body>
	<div id="mocha"></div>

	<!--<script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
	<script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>-->
	<script src="/out/vs/loader.js"></script>
	<script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>

	<script>
		mocha.setup('tdd');

		require.config({
			baseUrl: '/out',
			paths: {
				assert: '/test/assert.js'
			}
		});

		require({{ modules }}, function () {
			mocha.run();
		});
	</script></body>
</html>
@egamma egamma changed the title HTML format selection formats too much HTML format selection formatting entire line issue Apr 27, 2017
@egamma
Copy link
Member Author

egamma commented Apr 27, 2017

Simpler setup

	<script src="/out/vs/loader.js"></script>
*<<<*		<script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
*>>>*	<script>

Results in:

	<script src="/out/vs/loader.js"></script>
		<script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>	<script>

@egamma egamma added this to the April 2017 milestone Apr 28, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants