This is one of those little things that, until you know about it, you never realise you miss. Then, when you find out, end up using it all the time.

In Domino Designer when you want to add things inside the <head> tag you do so in the "HTML Head Content" section or in the $$HTMLHead field if still using 4.6.

The problem with this is that whatever you put in there gets sent to the browser as one long line of text. If you are like me and like to keep everything tidy and nicely laid out (even if it doesn't really matter) then this is a pain.

The beauty of the "HTML Head Content" is that you can use formulas in it. This is what got me wondering what happens when you put @NewLine in there. Well, what do you know, it tells Domino to break it up in to separate lines. This way you can format the header of you domino generated page as you would any other page.

Re: Another idea

I just get all my code headers and give them variable names, then put them together in a list and then to display it use. e,g,

T := @GetProfileField("ProfileSystem"; "DbTitle");

A := @GetProfileField("ProfileSystem"; "DbAuthor");

B := "<base href=\"" + Server_Name + "/" + @WebDbName + "/\">";

MD := @GetProfileField("ProfileSystem"; "MetaDescription");

@implode(A : B : T : MD; @NewLine);

That way I can keep all my variables and header fields in a readable order, but still get a semblance of readability when viewing page source in the browser. (I like the idea of @Repeat(Char(9); x) though.. Might start using that.

even BETTER yet...

<rant> If they (IBM/Iris) would fix formulae so that they didn't strip all the
carriage returns (and tabs) then we wouldn't have to mess with this.

I too use the cr=@Newline trick, but it irks me that I can either have
cut-and-paste ease between Dreamweaver and Domino, OR I can have neat HTML for
the browser. (When using Javascript, sometimes this matters for more than just
readability!) It is (in my opinion) retarded that they don't fix this. (Yes,
I know I'm complaining to the wrong people...) </rant>