question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indent with tab issue on website

See original GitHub issue

Beautifying with “Indent with a tab character” is indenting with a single space, see below.

answer = checkForHardFreezeBlackoutSchedules();

function checkForHardFreezeBlackoutSchedules() {

 var blackoutHelper = new TUChangeBlackoutHelper();
 var startDate = new GlideDateTime(current.start_date);
 var endDate = new GlideDateTime(current.end_date);

 var blckOutSchedGR = new GlideRecord('cmn_schedule_blackout');
 blckOutSchedGR.addQuery('u_type_of_freeze', 'Hard');
 blckOutSchedGR.query();

 while (blckOutSchedGR.next()) {

  if (blackoutHelper.isTimeFrameInBlackoutWindows(startDate, endDate, String(blckOutSchedGR.sys_id), true)) {

   return 'yes';
  }
 }
 return 'yes';
 //return 'no';
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
clarkWGriswoldcommented, Aug 8, 2018

great. it looks like it’s working. I was poking around a little because I use JsFormat in sublime text, I found there’s another option named “indent_with_tabs”. When this is set to true, it overrides the indent_size and indent_car options. I set the “Additional Settings (JSON)” field on the website to: { “indent_with_tabs”: true }

then set to Index with 2 spaces. When I beautify with these settings, it indents with tab. If I change the setting to false, it indents with 2 spaces. Since I configured my JsFormat to use my settings from the jsbeautifier site, I think maybe this option just fell off the options setting. Obviously, I don’t know what’s going on in the background, just a though I had.

I appreciate your site. Like I said, i use it a lot throughout the day and I recommend it to everyone that will listen to me.

Thank you!

On Wed, 8 Aug 2018 at 10:15, Liam Newman notifications@github.com wrote:

@clarkWGriswold https://github.com/clarkWGriswold Thanks for your help. I’ve cherry-picked this fix to the website, so it should be working now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/beautify-web/js-beautify/issues/1470#issuecomment-411483116, or mute the thread https://github.com/notifications/unsubscribe-auth/AHBaYfvUmgvtSkHedbzhPHzWc4E5Ab7Gks5uOxysgaJpZM4Vsjig .

0reactions
bitwisemancommented, Aug 8, 2018

@clarkWGriswold Thanks for your help. I’ve cherry-picked this fix to the website, so it should be working now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to indent or tab text on a web page or in HTML
Steps on how to create a tab or indent text on a web page or in HTML.
Read more >
Google Docs: Using Indents and Tabs - GCF Global
In Google Docs indents are useful to draw attention to certain elements. In Google Docs tabs are helpful for text placement.
Read more >
Can't indent (tab) in Safari? - Codecademy Forums
Hello, I'm having a problem with the code editor in Safari that I've not previously had before, so maybe I've done something inadvertently....
Read more >
Use tab key for shortcut of indentation when writing texts in gitlab
Use tab key for shortcut of indentation(i.e., two spaces) when writing/editing an issue or gitlab wiki pages. Use shift + tab key for...
Read more >
Formatting & Indenting Your HTML - Scott Granneman
On this page… ... Your text editor should make it easy to indent your code ... The next question is, how many spaces...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found