lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Feb 9, 2012, at 10:23 AM, rahul sharma wrote:

> I agree with LHF. I don't want the string to be broken down in output. Only
> while coding, I want to follow the 80 column format.

Ah, ok...

Then simply concatenate your strings:

print
(
  "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): " ..
  "Wrong packet received. Flow_entry not there for flow and " ..
  "packet received from " ..
  "server." 
)

> Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): Wrong packet received. Flow_entry not there for flow and packet received from server.

Or use format:

print
(
  ( '%s%s%s%s' ):format
  (
    "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): ",
    "Wrong packet received. Flow_entry not there for flow and ",
    "packet received from ",
    "server." 
  )
)

Whatever fits your need.

P.S.

80 columns format?!? How quaint :D