Last active
February 19, 2022 23:10
-
-
Save pbkwee/7a54af30168768526ae7a5ac0a272672 to your computer and use it in GitHub Desktop.
Eclipse jsp/javascript format bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bug per https://bugs.eclipse.org/bugs/show_bug.cgi?id=527275#c1 | |
Pre-format: | |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<%String foo = "foo"; %> | |
<script type="text/javascript"> | |
var hss = '<%=foo%>'; | |
</script> | |
Post format: | |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<% | |
String foo = "foo"; | |
%> | |
<script type="text/javascript"> | |
var hss = '<%=foo%> | |
'; | |
</script> | |
Bug: closing ' on var line creates a javascipt syntax error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment