This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204975

Summary: Not proper indentation of javascript for tpl file.
Product: javascript Reporter: alaksundar
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description alaksundar 2011-11-11 09:02:38 UTC
The javascript portion not formating properly through source->format option.
as for example gieven bellow.

<script type="text/javascript">
            function print_onclick() {
            document.form1.target = 'print_view';
            document.form1.action = 'kra_print.php';
            document.form1.submit();
            self.frames["print_view"].focus();
        }
        function pdf_onclick() {
        document.form1.target = 'downframe';
        document.form1.action = 'kra_pdf.php';
        document.form1.submit();
    }
    function do_submit() {
    document.form1.target = 'downframe';
    document.form1.action = 'view_appraisee.php';
    document.form1.submit();
}
        </script>
Comment 1 Petr Hejl 2012-09-04 07:11:48 UTC
Fixed for 7.3.